ApiError defines the struct for a basic api error response.

Hierarchy

Implemented by

Methods

Properties

Methods

  • Error makes it compatible with the error interface.

    Returns string

  • Is reports whether the current ApiError wraps the target.

    Parameters

    • target: Error

    Returns boolean

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

    Returns any

Properties

message: string
status: number

Generated using TypeDoc