CallbackException

abstract class CallbackException : CronetException


Eccezione passata a UrlRequest.Callback.onFailed() quando il metodo UrlRequest.Callback o UploadDataProvider genera un'eccezione. In questo caso, puoi utilizzare getCause() per trovare l'eccezione generata.

Riepilogo

Costruttori protetti

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

Costruisce un'eccezione che aggrega cause generata da un UrlRequest.Callback.

Costruttori protetti

CallbackException

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

Costruisce un'eccezione che aggrega cause generata da un UrlRequest.Callback.

Parametri
message: String!

Spiegazione dell'errore.

cause: Throwable!

Eccezione generata da UrlRequest.Callback che viene aggregata. Viene salvata per essere recuperata in un secondo momento da getCause().