Options
All
  • Public
  • Public/Protected
  • All
Menu

Error raised by the token lending program. Please note that error codes overlap with other known programs as they start at 0. Thus in some cases they might be wrongly represented and actually not originate from the token lending program.

Hierarchy

  • Error
    • TokenLendingError

Index

Constructors

constructor

  • new TokenLendingError(code: number, name: string, ...params: any[]): TokenLendingError

Properties

Readonly code

code: number

message

message: string

name

name: string

Optional stack

stack?: string

Static errorMap

errorMap: Map<number, ErrorMeta> = tokenLendingErrors

Static Optional prepareStackTrace

prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

Type declaration

Static stackTraceLimit

stackTraceLimit: number

Methods

toString

  • toString(): string

Static captureStackTrace

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Static fromCode

Generated using TypeDoc