Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XrplError

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

Hierarchy

Index

Constructors

  • new XrplError(message?: string, data?: unknown): XrplError
  • Construct an XrplError.

    Parameters

    • message: string = ''

      The error message.

    • Optional data: unknown

      The data that caused the error.

    Returns XrplError

Properties

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

Type declaration

stackTraceLimit: number

Methods

  • inspect(): string
  • toString(): string
  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc