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 android.net.http.HttpException; 11 12 import androidx.annotation.RequiresExtension; 13 14 import org.chromium.net.CronetException; 15 16 @RequiresExtension(extension = EXT_API_LEVEL, version = EXT_VERSION) 17 class AndroidHttpExceptionWrapper extends CronetException { AndroidHttpExceptionWrapper(HttpException e)18 AndroidHttpExceptionWrapper(HttpException e) { 19 super(e.getMessage(), e); 20 } 21 } 22