CallbackException

abstract class CallbackException : CronetException

kotlin.Any
   ↳ kotlin.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ org.chromium.net.CronetException
           ↳ org.chromium.net.CallbackException

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(message: String!, cause: Throwable!)

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

Protected constructors

CallbackException

protected CallbackException(message: String!, cause: Throwable!)

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().