Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Error
    • AnchorError

Index

Constructors

  • new AnchorError(errorCode: ErrorCode, errorMessage: string, errorLogs: string[], logs: string[], origin?: Origin, comparedValues?: ComparedValues): AnchorError
  • Parameters

    • errorCode: ErrorCode
    • errorMessage: string
    • errorLogs: string[]
    • logs: string[]
    • Optional origin: Origin
    • Optional comparedValues: ComparedValues

    Returns AnchorError

Properties

error: { comparedValues?: ComparedValues; errorCode: ErrorCode; errorMessage: string; origin?: Origin }

Type declaration

  • Optional comparedValues?: ComparedValues
  • errorCode: ErrorCode
  • errorMessage: string
  • Optional origin?: Origin
errorLogs: string[]
logs: string[]
message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Type declaration

stackTraceLimit: number

Accessors

Methods

  • 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