Class XrplError

Base Error class for xrpl.js. All Errors thrown by xrpl.js should throw XrplErrors.

Hierarchy

Constructors

  • Construct an XrplError.

    Parameters

    • message: string = ''

      The error message.

    • Optional data: unknown

      The data that caused the error.

      Optional

    Returns XrplError

Properties

data?: unknown
message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Type declaration

stackTraceLimit: number

Methods

  • Converts the Error to a human-readable String form.

    Returns string

    The String output of the Error.

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function
      Optional

    Returns void

Generated using TypeDoc