# GamebaseError

open class GamebaseError

Class responsible for creating error codes and error objects. The error object used by Gamebase uses com.toast.android.gamebase.base.GamebaseException class.

#### See also

GamebaseException

## Constructors

GamebaseError
Link copied to clipboard
constructor()

## Properties

ANDROID_ACTIVEAPP_NOT_CALLED
Link copied to clipboard
val ANDROID_ACTIVEAPP_NOT_CALLED: Int = 32
ANDROID_ACTIVITY_DESTROYED
Link copied to clipboard
val ANDROID_ACTIVITY_DESTROYED: Int = 31
ANDROID_PREFERENCES_ENCRYPTION_ERROR
Link copied to clipboard
val ANDROID_PREFERENCES_ENCRYPTION_ERROR: Int = 33
AUTH_ADD_MAPPING_ALREADY_HAS_SAME_IDP
Link copied to clipboard
val AUTH_ADD_MAPPING_ALREADY_HAS_SAME_IDP: Int = 3303
AUTH_ADD_MAPPING_ALREADY_MAPPED_TO_OTHER_MEMBER
Link copied to clipboard
val AUTH_ADD_MAPPING_ALREADY_MAPPED_TO_OTHER_MEMBER: Int = 3302
AUTH_ADD_MAPPING_CANNOT_ADD_GUEST_IDP
Link copied to clipboard
val AUTH_ADD_MAPPING_CANNOT_ADD_GUEST_IDP: Int = 3305
AUTH_ADD_MAPPING_FAILED
Link copied to clipboard
val AUTH_ADD_MAPPING_FAILED: Int = 3301
AUTH_ADD_MAPPING_FORCIBLY_ALREADY_USED_KEY
Link copied to clipboard
val AUTH_ADD_MAPPING_FORCIBLY_ALREADY_USED_KEY: Int = 3312
AUTH_ADD_MAPPING_FORCIBLY_DIFFERENT_AUTHKEY
Link copied to clipboard
val AUTH_ADD_MAPPING_FORCIBLY_DIFFERENT_AUTHKEY: Int = 3315
AUTH_ADD_MAPPING_FORCIBLY_DIFFERENT_IDP
Link copied to clipboard
val AUTH_ADD_MAPPING_FORCIBLY_DIFFERENT_IDP: Int = 3314
AUTH_ADD_MAPPING_FORCIBLY_EXPIRED_KEY
Link copied to clipboard
val AUTH_ADD_MAPPING_FORCIBLY_EXPIRED_KEY: Int = 3313
AUTH_ADD_MAPPING_FORCIBLY_NOT_EXIST_KEY
Link copied to clipboard
val AUTH_ADD_MAPPING_FORCIBLY_NOT_EXIST_KEY: Int = 3311
AUTH_ADD_MAPPING_INVALID_IDP_INFO
Link copied to clipboard
val AUTH_ADD_MAPPING_INVALID_IDP_INFO: Int = 3304
AUTH_ALREADY_IN_PROGRESS_ERROR
Link copied to clipboard
val AUTH_ALREADY_IN_PROGRESS_ERROR: Int = 3010
AUTH_AUTHENTICATION_SERVER_ERROR
Link copied to clipboard
val AUTH_AUTHENTICATION_SERVER_ERROR: Int = 3012
AUTH_EXTERNAL_LIBRARY_ERROR
Link copied to clipboard
val AUTH_EXTERNAL_LIBRARY_ERROR: Int = 3009
AUTH_EXTERNAL_LIBRARY_INITIALIZATION_ERROR
Link copied to clipboard
val AUTH_EXTERNAL_LIBRARY_INITIALIZATION_ERROR: Int = 3006
AUTH_IDP_LOGIN_FAILED
Link copied to clipboard
val AUTH_IDP_LOGIN_FAILED: Int = 3201
AUTH_IDP_LOGIN_INVALID_IDP_INFO
Link copied to clipboard
val AUTH_IDP_LOGIN_INVALID_IDP_INFO: Int = 3202
AUTH_INVALID_GAMEBASE_TOKEN
Link copied to clipboard
val AUTH_INVALID_GAMEBASE_TOKEN: Int = 3011
AUTH_LOGOUT_FAILED
Link copied to clipboard
val AUTH_LOGOUT_FAILED: Int = 3501
AUTH_NOT_EXIST_MEMBER
Link copied to clipboard
val AUTH_NOT_EXIST_MEMBER: Int = 3003
AUTH_NOT_PLAYABLE
Link copied to clipboard
val AUTH_NOT_PLAYABLE: Int = 3701
AUTH_NOT_SUPPORTED_PROVIDER
Link copied to clipboard
val AUTH_NOT_SUPPORTED_PROVIDER: Int = 3002
AUTH_REMOVE_MAPPING_FAILED
Link copied to clipboard
val AUTH_REMOVE_MAPPING_FAILED: Int = 3401
AUTH_REMOVE_MAPPING_LAST_MAPPED_IDP
Link copied to clipboard
val AUTH_REMOVE_MAPPING_LAST_MAPPED_IDP: Int = 3402
AUTH_REMOVE_MAPPING_LOGGED_IN_IDP
Link copied to clipboard
val AUTH_REMOVE_MAPPING_LOGGED_IN_IDP: Int = 3403
AUTH_TOKEN_LOGIN_FAILED
Link copied to clipboard
val AUTH_TOKEN_LOGIN_FAILED: Int = 3101
AUTH_TOKEN_LOGIN_INVALID_LAST_LOGGED_IN_IDP
Link copied to clipboard
val AUTH_TOKEN_LOGIN_INVALID_LAST_LOGGED_IN_IDP: Int = 3103
AUTH_TOKEN_LOGIN_INVALID_TOKEN_INFO
Link copied to clipboard
val AUTH_TOKEN_LOGIN_INVALID_TOKEN_INFO: Int = 3102
AUTH_TRANSFERACCOUNT_ALREADY_EXIST_ID
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_ALREADY_EXIST_ID: Int = 3047
AUTH_TRANSFERACCOUNT_ALREADY_USED
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_ALREADY_USED: Int = 3048
AUTH_TRANSFERACCOUNT_BLOCK
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_BLOCK: Int = 3042
AUTH_TRANSFERACCOUNT_CONSOLE_NO_CONDITION
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_CONSOLE_NO_CONDITION: Int = 3045
AUTH_TRANSFERACCOUNT_EXPIRED
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_EXPIRED: Int = 3041
Transfer Account
AUTH_TRANSFERACCOUNT_INVALID_ID
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_INVALID_ID: Int = 3043
AUTH_TRANSFERACCOUNT_INVALID_PASSWORD
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_INVALID_PASSWORD: Int = 3044
AUTH_TRANSFERACCOUNT_NOT_EXIST
Link copied to clipboard
val AUTH_TRANSFERACCOUNT_NOT_EXIST: Int = 3046
AUTH_UNKNOWN_ERROR
Link copied to clipboard
val AUTH_UNKNOWN_ERROR: Int = 3999
AUTH_USER_CANCELED
Link copied to clipboard
val AUTH_USER_CANCELED: Int = 3001
Auth error code
AUTH_WITHDRAW_ALREADY_TEMPORARY_WITHDRAW
Link copied to clipboard
val AUTH_WITHDRAW_ALREADY_TEMPORARY_WITHDRAW: Int = 3602
AUTH_WITHDRAW_FAILED
Link copied to clipboard
val AUTH_WITHDRAW_FAILED: Int = 3601
AUTH_WITHDRAW_NOT_TEMPORARY_WITHDRAW
Link copied to clipboard
val AUTH_WITHDRAW_NOT_TEMPORARY_WITHDRAW: Int = 3603
BANNED_MEMBER
Link copied to clipboard
val BANNED_MEMBER: Int = 7
INVALID_JSON_FORMAT
Link copied to clipboard
val INVALID_JSON_FORMAT: Int = 4
INVALID_MEMBER
Link copied to clipboard
val INVALID_MEMBER: Int = 6
INVALID_PARAMETER
Link copied to clipboard
val INVALID_PARAMETER: Int = 3
IOS_GAMECENTER_DENIED
Link copied to clipboard
val IOS_GAMECENTER_DENIED: Int = 51
for ios specified error code.
LAUNCHING_NOT_EXIST_CLIENT_ID
Link copied to clipboard
val LAUNCHING_NOT_EXIST_CLIENT_ID: Int = 2002
LAUNCHING_SERVER_ERROR
Link copied to clipboard
val LAUNCHING_SERVER_ERROR: Int = 2001
Launching error code
LAUNCHING_UNREGISTERED_APP
Link copied to clipboard
val LAUNCHING_UNREGISTERED_APP: Int = 2003
LAUNCHING_UNREGISTERED_CLIENT
Link copied to clipboard
val LAUNCHING_UNREGISTERED_CLIENT: Int = 2004
LOGGER_EXTERNAL_LIBRARY_ERROR
Link copied to clipboard
val LOGGER_EXTERNAL_LIBRARY_ERROR: Int = 6048
LOGGER_NOT_INITIALIZED
Link copied to clipboard
val LOGGER_NOT_INITIALIZED: Int = 6001
Logger code
LOGGER_UNKNOWN_ERROR
Link copied to clipboard
val LOGGER_UNKNOWN_ERROR: Int = 6049
NOT_GUEST_OR_HAS_OTHERS
Link copied to clipboard
val NOT_GUEST_OR_HAS_OTHERS: Int = 9
NOT_INITIALIZED
Link copied to clipboard
val NOT_INITIALIZED: Int = 1
Common error code
NOT_LOGGED_IN
Link copied to clipboard
val NOT_LOGGED_IN: Int = 2
NOT_SUPPORTED
Link copied to clipboard
val NOT_SUPPORTED: Int = 10
NOT_SUPPORTED_ANDROID
Link copied to clipboard
val NOT_SUPPORTED_ANDROID: Int = 11
for unity plugin error code.
NOT_SUPPORTED_IOS
Link copied to clipboard
val NOT_SUPPORTED_IOS: Int = 12
NOT_SUPPORTED_UNITY_EDITOR
Link copied to clipboard
val NOT_SUPPORTED_UNITY_EDITOR: Int = 13
NOT_SUPPORTED_UNITY_STANDALONE
Link copied to clipboard
val NOT_SUPPORTED_UNITY_STANDALONE: Int = 14
NOT_SUPPORTED_UNITY_WEBGL
Link copied to clipboard
val NOT_SUPPORTED_UNITY_WEBGL: Int = 15
PURCHASE_EXTERNAL_LIBRARY_ERROR
Link copied to clipboard
val PURCHASE_EXTERNAL_LIBRARY_ERROR: Int = 4201
PURCHASE_INACTIVE_PRODUCT_ID
Link copied to clipboard
val PURCHASE_INACTIVE_PRODUCT_ID: Int = 4005
PURCHASE_LIMIT_EXCEEDED
Link copied to clipboard
val PURCHASE_LIMIT_EXCEEDED: Int = 4007
PURCHASE_NOT_ENOUGH_CASH
Link copied to clipboard
val PURCHASE_NOT_ENOUGH_CASH: Int = 4004
Ongate 모듈 제거로 더 이상 사용되지 않는 에러 코드
PURCHASE_NOT_EXIST_PRODUCT_ID
Link copied to clipboard
val PURCHASE_NOT_EXIST_PRODUCT_ID: Int = 4006
PURCHASE_NOT_FINISHED_PREVIOUS_PURCHASING
Link copied to clipboard
val PURCHASE_NOT_FINISHED_PREVIOUS_PURCHASING: Int = 4003
PURCHASE_NOT_INITIALIZED
Link copied to clipboard
val PURCHASE_NOT_INITIALIZED: Int = 4001
Purchase error code
PURCHASE_NOT_SUPPORTED_MARKET
Link copied to clipboard
val PURCHASE_NOT_SUPPORTED_MARKET: Int = 4010
PURCHASE_PENDING
Link copied to clipboard
val PURCHASE_PENDING: Int = 4008
PURCHASE_UNKNOWN_ERROR
Link copied to clipboard
val PURCHASE_UNKNOWN_ERROR: Int = 4999
PURCHASE_USER_CANCELED
Link copied to clipboard
val PURCHASE_USER_CANCELED: Int = 4002
PUSH_ALREADY_IN_PROGRESS_ERROR
Link copied to clipboard
val PUSH_ALREADY_IN_PROGRESS_ERROR: Int = 5102
PUSH_EXTERNAL_LIBRARY_ERROR
Link copied to clipboard
val PUSH_EXTERNAL_LIBRARY_ERROR: Int = 5101
Push error code
PUSH_UNKNOWN_ERROR
Link copied to clipboard
val PUSH_UNKNOWN_ERROR: Int = 5999
SAME_REQUESTOR
Link copied to clipboard
val SAME_REQUESTOR: Int = 8
SERVER_INTERNAL_ERROR
Link copied to clipboard
val SERVER_INTERNAL_ERROR: Int = 8001
Server error code
SERVER_INVALID_RESPONSE
Link copied to clipboard
val SERVER_INVALID_RESPONSE: Int = 8003
SERVER_REMOTE_SYSTEM_ERROR
Link copied to clipboard
val SERVER_REMOTE_SYSTEM_ERROR: Int = 8002
SERVER_UNKNOWN_ERROR
Link copied to clipboard
val SERVER_UNKNOWN_ERROR: Int = 8999
SOCKET_ERROR
Link copied to clipboard
val SOCKET_ERROR: Int = 110
SOCKET_RESPONSE_TIMEOUT
Link copied to clipboard
val SOCKET_RESPONSE_TIMEOUT: Int = 101
Socket error code
SOCKET_UNKNOWN_ERROR
Link copied to clipboard
val SOCKET_UNKNOWN_ERROR: Int = 999
SUCCESS
Link copied to clipboard
val SUCCESS: Int = 0
Success
UI_COMMUNITY_FAIL_ANDROID_DUPLICATED_VIEW
Link copied to clipboard
val UI_COMMUNITY_FAIL_ANDROID_DUPLICATED_VIEW: Int = 6933
UI_COMMUNITY_FAIL_INVALID_URL
Link copied to clipboard
val UI_COMMUNITY_FAIL_INVALID_URL: Int = 6931
UI_COMMUNITY_FAIL_ISSUE_SHORT_TERM_TICKET
Link copied to clipboard
val UI_COMMUNITY_FAIL_ISSUE_SHORT_TERM_TICKET: Int = 6932
UI_CONTACT_FAIL_ANDROID_DUPLICATED_VIEW
Link copied to clipboard
val UI_CONTACT_FAIL_ANDROID_DUPLICATED_VIEW: Int = 6913
UI_CONTACT_FAIL_INVALID_URL
Link copied to clipboard
val UI_CONTACT_FAIL_INVALID_URL: Int = 6911
UI_CONTACT_FAIL_ISSUE_SHORT_TERM_TICKET
Link copied to clipboard
val UI_CONTACT_FAIL_ISSUE_SHORT_TERM_TICKET: Int = 6912
UI_GAME_NOTICE_FAIL_ANDROID_DUPLICATED_VIEW
Link copied to clipboard
val UI_GAME_NOTICE_FAIL_ANDROID_DUPLICATED_VIEW: Int = 6942
UI_GAME_NOTICE_FAIL_INVALID_URL
Link copied to clipboard
val UI_GAME_NOTICE_FAIL_INVALID_URL: Int = 6941
UI_IMAGE_NOTICE_NOT_SUPPORTED_OS
Link copied to clipboard
val UI_IMAGE_NOTICE_NOT_SUPPORTED_OS: Int = 6902
UI_IMAGE_NOTICE_TIMEOUT
Link copied to clipboard
val UI_IMAGE_NOTICE_TIMEOUT: Int = 6901
UI error code
UI_TERMS_ALREADY_IN_PROGRESS_ERROR
Link copied to clipboard
val UI_TERMS_ALREADY_IN_PROGRESS_ERROR: Int = 6924
UI_TERMS_ANDROID_DUPLICATED_VIEW
Link copied to clipboard
val UI_TERMS_ANDROID_DUPLICATED_VIEW: Int = 6925
UI_TERMS_NOT_EXIST_FOR_DEVICE_COUNTRY
Link copied to clipboard
val UI_TERMS_NOT_EXIST_FOR_DEVICE_COUNTRY: Int = 6922
UI_TERMS_NOT_EXIST_IN_CONSOLE
Link copied to clipboard
val UI_TERMS_NOT_EXIST_IN_CONSOLE: Int = 6921
UI_TERMS_UNREGISTERED_SEQ
Link copied to clipboard
val UI_TERMS_UNREGISTERED_SEQ: Int = 6923
UI_UNKNOWN_ERROR
Link copied to clipboard
val UI_UNKNOWN_ERROR: Int = 6999
UNKNOWN_ERROR
Link copied to clipboard
val UNKNOWN_ERROR: Int = 9999
USER_PERMISSION
Link copied to clipboard
val USER_PERMISSION: Int = 5
WEBVIEW_HTTP_ERROR
Link copied to clipboard
val WEBVIEW_HTTP_ERROR: Int = 7003
WEBVIEW_INVALID_URL
Link copied to clipboard
val WEBVIEW_INVALID_URL: Int = 7001
WebView error code
WEBVIEW_OPENED_NEW_BROWSER_BEFORE_CLOSE
Link copied to clipboard
val WEBVIEW_OPENED_NEW_BROWSER_BEFORE_CLOSE: Int = 7004
WEBVIEW_TIMEOUT
Link copied to clipboard
val WEBVIEW_TIMEOUT: Int = 7002
WEBVIEW_UNKNOWN_ERROR
Link copied to clipboard
val WEBVIEW_UNKNOWN_ERROR: Int = 7999

## Functions

isSuccess
Link copied to clipboard
open fun isSuccess(@Nullable gbException: GamebaseException): Boolean
newClientErrorCode
Link copied to clipboard
open fun newClientErrorCode(serverErrorCode: Int, @NonNull apiId: String): Int
newError
Link copied to clipboard
open fun newError(@NonNull domain: String, code: Int): GamebaseException
open fun newError(@NonNull domain: String, code: Int, @Nullable data: Intent): GamebaseException
open fun newError(@NonNull domain: String, code: Int, @Nullable cause: Throwable): GamebaseException
newErrorMessage
Link copied to clipboard
open fun newErrorMessage(code: Int): String
newErrorWithAppendMessage
Link copied to clipboard
open fun newErrorWithAppendMessage(@NonNull domain: String, code: Int, @Nullable appendMessage: String): GamebaseException
open fun newErrorWithAppendMessage(@NonNull domain: String, code: Int, @Nullable appendMessage: String, @Nullable data: Intent): GamebaseException
open fun newErrorWithAppendMessage(@NonNull domain: String, code: Int, @Nullable appendMessage: String, @Nullable cause: Throwable): GamebaseException
open fun newErrorWithAppendMessage(@NonNull domain: String, code: Int, @Nullable appendMessage: String, @Nullable data: Intent, @Nullable cause: Throwable): GamebaseException