Class GenericError

Thrown when network requests to the Auth server fail.

Hierarchy (view full)

Constructors

Properties

Methods

Constructors

  • Parameters

    • error: string

      The error code from the server response.

    • error_description: string

      The error_description from the server response.

    • Optional data: Record<string, any>

      Any other fields from the server's error response (for example auth_session).

    Returns GenericError

Properties

data?: Record<string, any>

Any other fields from the server's error response (for example auth_session).

error: string

The error code from the server response.

error_description: string

The error_description from the server response.

Methods

  • Parameters

    • __namedParameters: {
          error: string;
          error_description: string;
      }
      • error: string
      • error_description: string

    Returns GenericError