An object that contains the success or failure of the execution of the Gamebase function.
More...
|
| GamebaseException (final String domain, final int code, String message) |
| Constructs a new GamebaseException. More...
|
|
| GamebaseException (final String domain, final int code, Throwable cause) |
| Constructs a new GamebaseException. More...
|
|
| GamebaseException (final String domain, final int code, String format, Object... args) |
| Constructs a new GamebaseException. More...
|
|
| GamebaseException (final String domain, final int code, String message, Throwable cause) |
| Constructs a new GamebaseException. More...
|
|
String | getDomain () |
| Get result domain. More...
|
|
int | getCode () |
| Get result code. More...
|
|
String | getMessage () |
|
String | getDetailDomain () |
|
int | getDetailCode () |
|
String | getDetailMessage () |
|
void | putExtra (final String key, final Object value) |
|
void | putExtras (Map< String, Object > extras) |
|
Object | getExtra (final String key) |
|
JSONObject | toJson () |
|
String | toJsonString () |
|
String | toPrettyJsonString () |
|
String | toString () |
|
An object that contains the success or failure of the execution of the Gamebase function.
The error code is defined in the com.toast.android.gamebase.base.GamebaseError class.
- See also
- com.toast.android.gamebase.base.GamebaseError
◆ GamebaseException() [1/4]
Constructs a new GamebaseException.
- Parameters
-
domain | the result domain of this exception |
code | the result code of this exception |
message | the detail message of this exception |
◆ GamebaseException() [2/4]
Constructs a new GamebaseException.
- Parameters
-
domain | the result domain of this exception |
code | the result code of this exception |
cause | the cause of this exception |
◆ GamebaseException() [3/4]
GamebaseException |
( |
final String |
domain, |
|
|
final int |
code, |
|
|
String |
format, |
|
|
Object... |
args |
|
) |
| |
Constructs a new GamebaseException.
- Parameters
-
domain | the result domain of this exception |
code | the result code of this exception |
format | the format string (see java.util.Formatter#format) |
args | the list of arguments passed to the formatter. |
◆ GamebaseException() [4/4]
GamebaseException |
( |
final String |
domain, |
|
|
final int |
code, |
|
|
String |
message, |
|
|
Throwable |
cause |
|
) |
| |
Constructs a new GamebaseException.
- Parameters
-
domain | the result domain of this exception |
code | the result code of this exception |
message | the detail message of this exception |
cause | the cause of this exception |
◆ getCode()
Get result code.
- Returns
- the result code of this exception
◆ getDetailCode()
◆ getDetailDomain()
String getDetailDomain |
( |
| ) |
|
◆ getDetailMessage()
String getDetailMessage |
( |
| ) |
|
◆ getDomain()
Get result domain.
- Returns
- the result domain of this exception
◆ getExtra()
Object getExtra |
( |
final String |
key | ) |
|
◆ getMessage()
◆ putExtra()
void putExtra |
( |
final String |
key, |
|
|
final Object |
value |
|
) |
| |
◆ putExtras()
void putExtras |
( |
Map< String, Object > |
extras | ) |
|
◆ toJson()
◆ toJsonString()
◆ toPrettyJsonString()
String toPrettyJsonString |
( |
| ) |
|
◆ toString()
◆ mCode
◆ mDomain
◆ mExtras
Map<String, Object> mExtras |
|
protected |