Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MissingContractFieldError

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 inputs and contract body are missing one or more obligatory fields.

example

Throwing an MissingContractFieldError error

throw new MissingContractFieldError("This field is missing but it is required.");



Other links

Factory.buildContract

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