Custom exception class for representing errors returned by the Wallex.ir API.

Hierarchy

  • Error
    • APIError

Constructors

Properties

Methods

Constructors

  • Creates an instance of APIError.

    Parameters

    • code: number

      The error code returned by the API.

    • message: string

      The error message returned by the API.

    • result: any

      Additional result or data associated with the error.

    Returns APIError

Properties

code: number
message: string
name: string
result: any
stack?: string

Methods

  • Returns a string representation of the error.

    Returns string

    A string describing the error.

Generated using TypeDoc