Hierarchy

  • ArcGISRequestError
    • ArcGISAuthError

Constructors

  • Create a new ArcGISAuthError object.

    Parameters

    • Optional message: string

      The error message from the API

    • Optional code: string | number

      The error code from the API

    • Optional response: any

      The original response from the API that caused the error

    • Optional url: string

      The original url of the request

    • Optional options: IRequestOptions

      The original options of the request

    Returns ArcGISAuthError

Properties

code: string | number

The error code returned from the request.

message: string

Formatted error message. See the Error class for more details.

name: string

The name of this error. Will always be "ArcGISRequestError" to conform with the Error class.

The options of the original request that caused the error

originalMessage: string

The errror message return from the request.

response: any

The original JSON response the caused the error.

url: string

The URL of the original request that caused the error

Methods

  • Parameters

    • getSession: IRetryAuthError
    • Optional retryLimit: number

    Returns Promise<unknown>