1 // Copyright 2023 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.net.impl; 6 7 import static org.chromium.net.impl.HttpEngineNativeProvider.EXT_API_LEVEL; 8 import static org.chromium.net.impl.HttpEngineNativeProvider.EXT_VERSION; 9 10 import androidx.annotation.RequiresExtension; 11 12 @RequiresExtension(extension = EXT_API_LEVEL, version = EXT_VERSION) 13 class AndroidCallbackExceptionWrapper extends org.chromium.net.CallbackException { AndroidCallbackExceptionWrapper(android.net.http.CallbackException e)14 protected AndroidCallbackExceptionWrapper(android.net.http.CallbackException e) { 15 // The CallbackException contract states the cause of the top level exception is the 16 // exception thrown by the callback. 17 super(e.getMessage(), e.getCause()); 18 } 19 } 20