public class BaasApiException extends BaasException
BaasException
. This is the root of all the
exception thrown by the remote server; if it crashes or the request made is
invalid, a subclass of BaasApiException is thrown by the SDK.Modifier and Type | Field and Description |
---|---|
java.lang.String |
apiVersion
The version of the API called.
|
int |
code
The id of the BaasBox specific error
|
int |
httpStatus
The HTTP status code of the result.
|
java.lang.String |
method
The HTTP method of the request
|
java.util.Map<java.lang.String,java.lang.String> |
requestHeader
A map containing the name/value pairs of the request's headers.
|
java.lang.String |
resource
The URI requested by the SDK.
|
Constructor and Description |
---|
BaasApiException(int code,
int httpStatus,
java.lang.String resource,
java.lang.String method,
java.util.Map<java.lang.String,java.lang.String> requestHeader,
java.lang.String apiVersion,
java.lang.String detailMessage) |
BaasApiException(int httpStatus,
JsonObject error) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
public final int httpStatus
public final java.lang.String resource
public final java.lang.String method
public final java.util.Map<java.lang.String,java.lang.String> requestHeader
public final java.lang.String apiVersion
public final int code
public BaasApiException(int httpStatus, JsonObject error)
public BaasApiException(int code, int httpStatus, java.lang.String resource, java.lang.String method, java.util.Map<java.lang.String,java.lang.String> requestHeader, java.lang.String apiVersion, java.lang.String detailMessage)