1 // Copyright 2015 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; 6 7 import java.io.IOException; 8 9 /** Base exception passed to {@link UrlRequest.Callback#onFailed UrlRequest.Callback.onFailed()}. */ 10 public abstract class CronetException extends IOException { 11 /** 12 * Constructs an exception that is caused by {@code cause}. 13 * 14 * @param message explanation of failure. 15 * @param cause the cause (which is saved for later retrieval by the {@link 16 * java.io.IOException#getCause getCause()} method). A null value is permitted, and indicates 17 * that the cause is nonexistent or unknown. 18 */ CronetException(String message, Throwable cause)19 protected CronetException(String message, Throwable cause) { 20 super(message, cause); 21 } 22 } 23