IRequestStateElement interface

Consists of methods to store the information of an exception.

Package

com.sap.mobile.lib.request

Syntax

public abstract interface IRequestStateElement

Derived classes

Members

All members of IRequestStateElement, including inherited members.

Variables
Modifier and Type Variable Description
public static final int NO_ERROR  
public static final int HTTP_ERROR Server response status > 302.
public static final int PARSE_ERROR Problem with parsing the response xml.
public static final int NETWORK_ERROR There was a network error during a read/write to/from stream.
public static final int AUTHENTICATION_ERROR Authentication error.
public static final int CLIENT_ERROR Client error.
public static final int REQUEST_ERROR Problem with parsing the request.
Methods
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.

Usage

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.