Skip to content
Titanium SDK
Version13.1.1

You are reading 13.1.1. See this page in 13.4.1.

ErrorResponse

pseudoAndroidiPhoneiPadmacOS

Extended by ContactsAuthorizationResponseFailureResponseLocationAuthorizationResponseMediaAuthorizationResponseReadCallbackArgsRequestCameraAccessResultRequestMusicLibraryAccessResultRequestPermissionAccessResultRequestPhotoGalleryAccessResultRequestStorageAccessResultSuccessResponseWriteCallbackArgs

Properties used in any event or callback which needs to report a success or failure.

Properties 3

code

Number

Error code. Returns 0 if success is true.

Error code will be 0 if success is true, nonzero otherwise. If the error was generated by the operating system, that system's error value is used. Otherwise, this value will be -1.

error

String

Error message, if any returned.

Will be undefined if success is true.

success

Boolean

Indicates if the operation succeeded.

Returns true if request succeeded, false otherwise.