Deprecated. since 3.0, Use com.sap.mobile.lib.request.IRequestStateElement The SDMRequestStateElement implementation stores the data of an exception.
com.sap.mobile.lib.sdmconnectivity
public class SDMRequestStateElement implements ISDMRequestStateElement
All members of SDMRequestStateElement, including inherited members.
Variables| Modifier and Type | Variable | Description |
|---|---|---|
| protected int | mErrorCode | Stores the error type. |
| protected int | mHttpStatus | Stores the HTTP status if available. |
| protected HttpResponse | mResponse | |
| protected Exception | mException | Stores the exception if available. |
| Modifier and Type | Constructor | Description |
|---|---|---|
| public | SDMRequestStateElement() | |
| public | SDMRequestStateElement(final int) | |
| public | SDMRequestStateElement(final int, final Exception) | |
| public | SDMRequestStateElement(final int, final int) | |
| public | SDMRequestStateElement(final int, final int, final Exception) | |
| public | SDMRequestStateElement(final int, HttpResponse) | |
| public | SDMRequestStateElement(final int, HttpResponse, Exception) |
| Modifier and Type | Method | Description |
|---|---|---|
| public int | getErrorCode() | Returns the error code. |
| public Exception | getException() | Returns the Exception if it was set. |
| public HttpResponse | getHttpResponse() | Returns the HttpResponse. |
| public int | getHttpStatusCode() | Returns the HTTP status if it was set. |
| public void | setErrorCode(final int) | Sets the error code. |
| public void | setException(final Exception) | Sets the Exception. |
| public void | setHttpResponse(HttpResponse) | Sets the HttpResponse. |
| public void | setHttpStatusCode(int) |
| Modifier and Type | Member | 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. |
| 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 class is sent by the net layer to the registered classes.