Consists of methods to store the information of an exception.
All members of IRequestStateElement, including inherited members.
VariablesModifier and Type | Variable | Description |
---|---|---|
public static final int | AUTHENTICATION_ERROR | Authentication error. |
public static final int | CLIENT_ERROR | Client error. |
public static final int | HTTP_ERROR | Server response status > 302. |
public static final int | NETWORK_ERROR | There was a network error during a read/write to/from stream. |
public static final int | NO_ERROR | |
public static final int | PARSE_ERROR | Problem with parsing the response xml. |
public static final int | REQUEST_ERROR | Problem with parsing the request. |
Modifier and Type | Method | Description |
---|---|---|
public abstract int | getErrorCode() | Returns the error code. |
public abstract Exception | getException() | Returns the exception if it is set. |
public abstract HttpResponse | getHttpResponse() | Returns the HttpResponse. |
public abstract int | getHttpStatusCode() | Returns the HTTP status if it is set. |
public abstract void | setErrorCode(final int) | Sets the error code. |
public abstract void | setException(final Exception) | Sets the exception. |
public abstract void | setHttpResponse(HttpResponse) | Sets the HttpResponse. |
public abstract void | setHttpStatusCode(final int) | Sets the HTTP status. |
Whenever there is an exception in the network layer, or there is an exception during the data parsing, this is sent by the network layer to the registered classes.