MandaitorNotFoundError
@mandaitor/sdk / MandaitorNotFoundError
Class: MandaitorNotFoundError
Defined in: @mandaitor/sdk/dist/errors.d.ts:97
Thrown when the API returns a 404 Not Found response.
Extends
Constructors
Constructor
new MandaitorNotFoundError(
code,message,requestId?):MandaitorNotFoundError
Defined in: @mandaitor/sdk/dist/errors.d.ts:99
Parameters
code
string
message
string
requestId?
string
Returns
MandaitorNotFoundError
Overrides
Properties
cause?
optionalcause?:unknown
Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24
Inherited from
code
readonlycode:string
Defined in: @mandaitor/sdk/dist/errors.d.ts:47
Machine-readable error code from ErrorCodes
Inherited from
message
message:
string
Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075
Inherited from
name
readonlyname:"MandaitorNotFoundError"="MandaitorNotFoundError"
Defined in: @mandaitor/sdk/dist/errors.d.ts:98
Overrides
requestId?
readonlyoptionalrequestId?:string
Defined in: @mandaitor/sdk/dist/errors.d.ts:49
Optional request ID for support debugging
Inherited from
stack?
optionalstack?:string
Defined in: .pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
status
readonlystatus:number
Defined in: @mandaitor/sdk/dist/errors.d.ts:45
HTTP status code (e.g. 400, 404, 500)
Inherited from
Accessors
isClientError
Get Signature
get isClientError():
boolean
Defined in: @mandaitor/sdk/dist/errors.d.ts:61
Returns true if this is a client error (4xx)
Returns
boolean
Inherited from
MandaitorApiError.isClientError
isRetryable
Get Signature
get isRetryable():
boolean
Defined in: @mandaitor/sdk/dist/errors.d.ts:63
Returns true if this is a server error (5xx) — safe to retry
Returns
boolean
Inherited from
Methods
toJSON()
toJSON():
object
Defined in: @mandaitor/sdk/dist/errors.d.ts:65
Structured JSON representation for logging
Returns
object
code
code:
string
message
message:
string
name
name:
string
requestId
requestId:
string|undefined
status
status:
number