blob: 904e914d320f239452967652d862467d807b5511 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.net.impl;
import static org.chromium.net.impl.HttpEngineNativeProvider.EXT_API_LEVEL;
import static org.chromium.net.impl.HttpEngineNativeProvider.EXT_VERSION;
import androidx.annotation.RequiresExtension;
@RequiresExtension(extension = EXT_API_LEVEL, version = EXT_VERSION)
class AndroidCallbackExceptionWrapper extends org.chromium.net.CallbackException {
protected AndroidCallbackExceptionWrapper(android.net.http.CallbackException e) {
// The CallbackException contract states the cause of the top level exception is the
// exception thrown by the callback.
super(e.getMessage(), e.getCause());
}
}