public interface PCErrorsCallback extends PCTaskCallback
Modifier and Type | Method and Description |
---|---|
void |
error(PCError error,
PCNetError netError)
Called when an error has occurred.
|
onTaskCancelled, onTaskCreated
void error(PCError error, PCNetError netError)
PCError
or PCNetError
might erase. Thus, the only one error is returned while the second one will be null (but not both are null).error
- PCError
object. Usually occurs id some incorrect states come (like wrong data passed
to API method, or passed password is incorrect, or encryption/decryption failed
etc.)netError
- PCNetError
object. Usually occurs when the connection with server was't successful, e.g.
authentication failed or wrong URL passed etc.