Package es.situm.sdk.communication
Interface CommunicationManager.Code
-
- All Superinterfaces:
CommonErrorConstant.Code
- Enclosing interface:
- CommunicationManager
public static interface CommunicationManager.Code extends CommonErrorConstant.Code
The error codes received inHandler.onFailure(Error)
on theCommunicationManager
-
-
Field Summary
Fields Modifier and Type Field Description static int
FILE_NOT_FOUND
File not foundstatic int
FILE_NOT_SAVED
Server returned data correctly, but something went wrong while saving it on disk.static int
HTTP_BAD_REQUEST
The request was unacceptable, often due to missing a required parameter.static int
HTTP_NOT_FOUND
The request resource doesn't exist.static int
HTTP_REQUEST_FAILED
The parameters were valid but the request failed.static int
HTTP_SERVER_ERROR
Something went wrong on Situm's end.static int
HTTP_UNAUTHORIZED
Provided credentials are not valid.static int
INVALID_REQUEST_PARAMETERS
Error while creating request payload.static int
MALFORMED_JSON
Server returned a JSON that can't be read.static int
NETWORK_ERROR
Network error.-
Fields inherited from interface es.situm.sdk.error.CommonErrorConstant.Code
INTERNAL_ERROR, INTERNET_NOT_AVAILABLE, UNPROCESSABLE_ENTITY
-
-
-
-
Field Detail
-
NETWORK_ERROR
static final int NETWORK_ERROR
Network error. Called when the request could not be executed due to cancellation, a connectivity problem or timeout- See Also:
- Constant Field Values
-
INVALID_REQUEST_PARAMETERS
static final int INVALID_REQUEST_PARAMETERS
Error while creating request payload. Usually because incorrect params, check them.- See Also:
- Constant Field Values
-
MALFORMED_JSON
static final int MALFORMED_JSON
Server returned a JSON that can't be read.- See Also:
- Constant Field Values
-
FILE_NOT_SAVED
static final int FILE_NOT_SAVED
Server returned data correctly, but something went wrong while saving it on disk. File was deleted or couldn't be read.- See Also:
- Constant Field Values
-
FILE_NOT_FOUND
static final int FILE_NOT_FOUND
File not found- See Also:
- Constant Field Values
-
HTTP_BAD_REQUEST
static final int HTTP_BAD_REQUEST
The request was unacceptable, often due to missing a required parameter.- See Also:
- Constant Field Values
-
HTTP_UNAUTHORIZED
static final int HTTP_UNAUTHORIZED
Provided credentials are not valid.- See Also:
- Constant Field Values
-
HTTP_REQUEST_FAILED
static final int HTTP_REQUEST_FAILED
The parameters were valid but the request failed.- See Also:
- Constant Field Values
-
HTTP_NOT_FOUND
static final int HTTP_NOT_FOUND
The request resource doesn't exist.- See Also:
- Constant Field Values
-
HTTP_SERVER_ERROR
static final int HTTP_SERVER_ERROR
Something went wrong on Situm's end.- See Also:
- Constant Field Values
-
-