BackstageAPIError
@ticketlayer/backstage / BackstageAPIError
Class: BackstageAPIError
Defined in: client.ts:252
Extends
Error
Constructors
Constructor
new BackstageAPIError(
message: string,
code: string,
statusCode: number): BackstageAPIError;
Defined in: client.ts:256
Parameters
| Parameter | Type |
|---|---|
message | string |
code | string |
statusCode | number |
Returns
BackstageAPIError
Overrides
Error.constructor
Methods
isAuthenticationError()
isAuthenticationError(): boolean;
Defined in: client.ts:273
Check if this is an authentication error
Returns
boolean
isNotFound()
isNotFound(): boolean;
Defined in: client.ts:287
Check if this is a not found error
Returns
boolean
isPermissionDenied()
isPermissionDenied(): boolean;
Defined in: client.ts:266
Check if this is a permission denied error
Returns
boolean
isSessionExpired()
isSessionExpired(): boolean;
Defined in: client.ts:280
Check if this is a session expired error (401 that couldn't be refreshed)
Returns
boolean
isValidationError()
isValidationError(): boolean;
Defined in: client.ts:294
Check if this is a validation error
Returns
boolean
Properties
code
readonly code: string;
Defined in: client.ts:253
statusCode
readonly statusCode: number;
Defined in: client.ts:254