CallbackException

public abstract class CallbackException extends CronetException

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.

Protected Constructor Summary

CallbackException(String message, Throwable cause)
Constructs an exception that wraps cause thrown by a UrlRequest.Callback.

Inherited Method Summary

synchronized final void
addSuppressed(Throwable arg0)
synchronized Throwable
fillInStackTrace()
synchronized Throwable
getCause()
String
getLocalizedMessage()
String
getMessage()
StackTraceElement[]
getStackTrace()
synchronized final Throwable[]
getSuppressed()
synchronized Throwable
initCause(Throwable arg0)
void
printStackTrace()
void
printStackTrace(PrintWriter arg0)
void
printStackTrace(PrintStream arg0)
void
setStackTrace(StackTraceElement[] arg0)
String
toString()
Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Protected Constructors

protected CallbackException (String message, Throwable cause)

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

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