Skip to main content
Version: v3.1.0

Errors

Salable error types

Salable throws different kinds of errors. The following lists the exception types, and their documented data fields:

SalableResponseError

The Salable node SDK throws a SalableResponseError exception if the error is a known error.

PropertyDescription
codeA Salable specific error code
statusThe status code of the error
dataError message associated with the error

SalableValidationError

The Salable node SDK throws a SalableValidationError exception if the error is related validating data on the request.

PropertyDescription
codeA Salable specific error code
statusThe status code of the error
dataAn array of ValidationError

SalableUnknownError

The Salable node SDK throws a SalableUnknownError exception if the error unknown.

PropertyDescription
codeA Salable specific error code
errorA message related to the error

Salable error codes

CodeDescription
S1000Unauthorised access to SDK
S1001Object was not found
S1002Bad request
S1003Validation error
S1004Unknown error in Salable API
S1005Unknown error in Salable SDK