public abstract class

CallbackException

extends CronetException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ org.chromium.net.CronetException
           ↳ org.chromium.net.CallbackException

Class Overview

Exception passed to UrlRequest.Callback.onFailed() when UrlRequest.Callback or UploadDataProvider method throws an exception. In this case getCause() can be used to find the thrown exception.

Summary

Protected Constructors
CallbackException(String message, Throwable cause)
Constructs an exception that wraps cause thrown by a UrlRequest.Callback.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Protected Constructors

protected CallbackException (String message, Throwable cause)

Constructs an exception that wraps cause thrown by a UrlRequest.Callback.

Parameters
message String: explanation of failure.
cause Throwable: exception thrown by UrlRequest.Callback that's being wrapped. It is saved for later retrieval by the getCause().