ApiError defines the struct for a basic api error response.

Hierarchy

Implements

Constructors

Methods

Properties

Constructors

  • Parameters

    • Optional status: number
    • Optional message: string
    • Optional data: any

    Returns ApiError

Methods

  • Error makes it compatible with the error interface.

    Returns string

  • RawData returns the unformatted error data (could be an internal error, text, etc.)

    Returns any

Properties

code: number
message: string

Generated using TypeDoc