Class BlockchainError

A class for blockchain errors.

Hierarchy

  • Error
    • BlockchainError

Constructors

  • Creates a new BlockchainError object.

    Parameters

    • code: number

      The error code.

    • message: string

      The error message.

    Returns BlockchainError

Properties

code: number

The error code.

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

Optional override for formatting stack traces

Type declaration

    • (err, stackTraces): any
    • Parameters

      • err: Error
      • stackTraces: CallSite[]

      Returns any

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: Object
    • Optional constructorOpt: Function

    Returns void