# GamebaseException

open class GamebaseException : RuntimeException

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

GamebaseError

## Constructors

GamebaseException
Link copied to clipboard
constructor(domain: String, code: Int, message: String)
Constructs a new GamebaseException.
constructor(domain: String, code: Int, cause: Throwable)
Constructs a new GamebaseException.
constructor(domain: String, code: Int, format: String, args: Array<Any>)
Constructs a new GamebaseException.
constructor(domain: String, code: Int, message: String, cause: Throwable)
Constructs a new GamebaseException.

## Functions

addSuppressed
Link copied to clipboard
fun addSuppressed(exception: Throwable)
fillInStackTrace
Link copied to clipboard
open fun fillInStackTrace(): Throwable
from
Link copied to clipboard
open fun from(@Nullable jsonString: String): GamebaseException
getCause
Link copied to clipboard
open fun getCause(): Throwable
getCode
Link copied to clipboard
open fun getCode(): Int
Get result code.
getDetailCode
Link copied to clipboard
open fun getDetailCode(): Int
getDetailDomain
Link copied to clipboard
@Nullable
open fun getDetailDomain(): String
getDetailMessage
Link copied to clipboard
@Nullable
open fun getDetailMessage(): String
getDomain
Link copied to clipboard
open fun getDomain(): String
Get result domain.
getExceptionId
Link copied to clipboard
@NonNull
open fun getExceptionId(): String
Get Exception ID.
getExtra
Link copied to clipboard
open fun getExtra(key: String): Any
getExtraString
Link copied to clipboard
@NonNull
open fun getExtraString(key: String): String
getLocalizedMessage
Link copied to clipboard
open fun getLocalizedMessage(): String
getMessage
Link copied to clipboard
open fun getMessage(): String
getStackTrace
Link copied to clipboard
open fun getStackTrace(): Array<StackTraceElement>
getSuppressed
Link copied to clipboard
fun getSuppressed(): Array<Throwable>
initCause
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
printStackTrace
Link copied to clipboard
open fun printStackTrace()
putExtra
Link copied to clipboard
open fun putExtra(key: String, value: Any)
putExtras
Link copied to clipboard
open fun putExtras(extras: Map<String, Any>)
setExceptionId
Link copied to clipboard
open fun setExceptionId(@NonNull id: String)
Set Exception ID.
setStackTrace
Link copied to clipboard
open fun setStackTrace(stackTrace: Array<StackTraceElement>)
toJson
Link copied to clipboard
@NonNull
open fun toJson(): JSONObject
toJsonString
Link copied to clipboard
open fun toJsonString(): String
toPrettyJsonString
Link copied to clipboard
open fun toPrettyJsonString(): String
toString
Link copied to clipboard
open fun toString(): String