Class: NexatronError
Error thrown by the Nexatron SDK. Carries the underlying HTTP status when available.
Extends
Error
Constructors
Constructor
new NexatronError(
message,options?):NexatronError
Parameters
message
string
options?
cause?
unknown
retryable?
boolean
retryAfterMs?
number
status?
number
Returns
NexatronError
Overrides
Error.constructor
Properties
cause?
readonlyoptionalcause?:unknown
message
message:
string
Inherited from
Error.message
name
name:
string
Inherited from
Error.name
retryable
readonlyretryable:boolean
Whether trying the same request again is safe and may succeed. False after an ambiguous failure of a POST (a 5xx or a lost connection): the server may have done the work, so resending could ask the question and spend credits twice.
retryAfterMs?
readonlyoptionalretryAfterMs?:number
The wait the server asked for with Retry-After, when it sent one.
stack?
optionalstack?:string
Inherited from
Error.stack
status?
readonlyoptionalstatus?:number