👾Errors
To know the error response from Startrail-Sdk-Js
Description
Errors inheriting from Error
objects will be thrown, and custom error properties are described in the Response
below
See more details for Error objects
Response
Variable
Type
Description
from
"StartrailSdk"
To identify where the error comes from
errorCode
ErrorCode
To identify the error type for error handling
ErrorCode
Followings are the errors to be returned. Frontend can catch and handle it accordingly for better UX.
Response Example
Example
{
from: 'StartrailSdk',
errorCode: 'TORUS_USER_REJECT_WALLET_REQUEST',
message: 'Torus Message Signature: User denied message signature.',
}
Last updated
Was this helpful?