Class ContractAddressRequiredError

This error is thrown when assertValidAddress is called, usually because a contract call expects the class to have a valid address attached.

ContractAddressRequiredError

try {
target.assertValidAddress()
} catch(e) {
if(e instanceof ContractAddressRequiredError) {}

Hierarchy

  • Error
    • ContractAddressRequiredError

Constructors

Properties

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

Optional override for formatting stack traces

stack?: string
cause?: unknown

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void