|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.gbanga.api.APIException
public class APIException
An exception has occured while using the Gbanga Game API.
| Field Summary | |
|---|---|
static int |
ACCEPTED
HTTP status code 202. |
static int |
BAD_REQUEST
HTTP status code 400. |
int |
code
The HTTP status code. |
java.lang.String |
explanation
A detailed explanation of the exception. |
static int |
FORBIDDEN
HTTP status code 403. |
static int |
OK
HTTP status code 200. |
static int |
SERVER_ERROR
HTTP status code 500. |
| Constructor Summary | |
|---|---|
APIException(int code)
Creates an exception with the given error code. |
|
APIException(int code,
java.lang.String explanation)
Creates an exception with the given code and explanation |
|
APIException(java.lang.String explanation)
Creates an exception with the given explanation. |
|
APIException(java.lang.Throwable t)
Creates an exception wrapping an existing Throwable. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int ACCEPTED
public static final int BAD_REQUEST
@PrimaryKey public int code
@HideIfNull public java.lang.String explanation
public static final int FORBIDDEN
public static final int OK
public static final int SERVER_ERROR
| Constructor Detail |
|---|
public APIException(int code)
code - a HTTP status code
public APIException(int code,
java.lang.String explanation)
code - a HTTP status codeexplanation - a detailed explanationpublic APIException(java.lang.String explanation)
explanation - a detailed explanationpublic APIException(java.lang.Throwable t)
Throwable.
t - a Throwable that occured
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||