Skip to main content

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?​

readonly optional cause?: unknown


message​

message: string

Inherited from​

Error.message


name​

name: string

Inherited from​

Error.name


retryable​

readonly retryable: 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?​

readonly optional retryAfterMs?: number

The wait the server asked for with Retry-After, when it sent one.


stack?​

optional stack?: string

Inherited from​

Error.stack


status?​

readonly optional status?: number