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

  • 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