Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InvalidContractError

description

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

This error is thrown when the attached JSON payload is not represented as a valid JSON object.

example

Throwing an InvalidContractError error

throw new InvalidContractError("This JSON payload is invalid.");



Other links

Factory.parseJSON

since

v0.3.0

Hierarchy

Index

Constructors

Properties

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

Optional override for formatting stack traces

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