VisitorsApiError
An error answer from ebitex, or an answer the SDK could not read.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new VisitorsApiError(
message,status,code?,requestId?,errors?):VisitorsApiError
Parameters
Section titled “Parameters”message
Section titled “message”string
status
Section titled “status”number
string
requestId?
Section titled “requestId?”string
errors?
Section titled “errors?”Record<string, string>
Returns
Section titled “Returns”VisitorsApiError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Inherited from
Section titled “Inherited from”Error.cause
readonlycode:string|undefined
The error member of the answer, when there was one: for example invalid_api_key, origin_denied or rate_limited.
errors
Section titled “errors”
readonlyerrors:Record<string,string> |undefined
When the answer named what was wrong with each member (a bad name, an undeclared or mistyped property), a message for each, keyed by member.
message
Section titled “message”message:
string
Inherited from
Section titled “Inherited from”Error.message
name:
string
Inherited from
Section titled “Inherited from”Error.name
requestId
Section titled “requestId”
readonlyrequestId:string|undefined
The X-Request-Id of the answer. Quote it when you ask for help.
stack?
Section titled “stack?”
optionalstack?:string
Inherited from
Section titled “Inherited from”Error.stack
status
Section titled “status”
readonlystatus:number
The HTTP status, or 0 when the request never got an answer (a network failure).