Gamebase SDK for Android  2.5.0
Toast Gamebase Platform
GamebaseException Class Reference

An object that contains the success or failure of the execution of the Gamebase function. More...

Inheritance diagram for GamebaseException:
Inheritance graph
Collaboration diagram for GamebaseException:
Collaboration graph

Public Member Functions

 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 ()
 

Protected Attributes

final String mDomain
 
final int mCode
 
Map< String, Object > mExtras
 

Detailed Description

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

Constructor & Destructor Documentation

◆ GamebaseException() [1/4]

GamebaseException ( final String  domain,
final int  code,
String  message 
)

Constructs a new GamebaseException.

Parameters
domainthe result domain of this exception
codethe result code of this exception
messagethe detail message of this exception
Here is the caller graph for this function:

◆ GamebaseException() [2/4]

GamebaseException ( final String  domain,
final int  code,
Throwable  cause 
)

Constructs a new GamebaseException.

Parameters
domainthe result domain of this exception
codethe result code of this exception
causethe cause of this exception

◆ GamebaseException() [3/4]

GamebaseException ( final String  domain,
final int  code,
String  format,
Object...  args 
)

Constructs a new GamebaseException.

Parameters
domainthe result domain of this exception
codethe result code of this exception
formatthe format string (see java.util.Formatter#format)
argsthe 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
domainthe result domain of this exception
codethe result code of this exception
messagethe detail message of this exception
causethe cause of this exception

Member Function Documentation

◆ getCode()

int getCode ( )

Get result code.

Returns
the result code of this exception
Here is the caller graph for this function:

◆ getDetailCode()

int getDetailCode ( )
Here is the call graph for this function:

◆ getDetailDomain()

String getDetailDomain ( )
Here is the call graph for this function:

◆ getDetailMessage()

String getDetailMessage ( )

◆ getDomain()

String getDomain ( )

Get result domain.

Returns
the result domain of this exception
Here is the caller graph for this function:

◆ getExtra()

Object getExtra ( final String  key)

◆ getMessage()

String getMessage ( )
Here is the caller graph for this function:

◆ putExtra()

void putExtra ( final String  key,
final Object  value 
)

◆ putExtras()

void putExtras ( Map< String, Object >  extras)
Here is the caller graph for this function:

◆ toJson()

JSONObject toJson ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toJsonString()

String toJsonString ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toPrettyJsonString()

String toPrettyJsonString ( )
Here is the call graph for this function:

◆ toString()

String toString ( )
Here is the call graph for this function:

Member Data Documentation

◆ mCode

final int mCode
protected

◆ mDomain

final String mDomain
protected

◆ mExtras

Map<String, Object> mExtras
protected