Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UnknownContractError

description

This class is used for more transparent error handling. It is thrown, notably by the Factory.buildContract method that gets called internally when creating contract instances from JSON payloads or transactions.

This error is thrown when the attached contract signature could not get parsed into a valid contract child class instance.

example

Throwing an UnknownContractError error

throw new UnknownContractError("This contract is unknown.");



Other links

Factory.buildContract

since

v0.3.0

Hierarchy

Index

Constructors

Properties

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

Type declaration

stackTraceLimit: number

Methods

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

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc