Options
All
  • Public
  • Public/Protected
  • All
Menu

An error raised by the anchor program before getting to the actual program implementation.

Hierarchy

  • Error
    • AnchorError

Index

Constructors

constructor

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

Properties

Readonly code

code: number

message

message: string

name

name: string

Optional stack

stack?: string

Static errorMap

errorMap: Map<number, ErrorMeta> = ...

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