Skip to main content

Eip838ExecutionError

This class is expected to be set as an innerError inside ContractExecutionError The properties would be typically decoded from the data if it was encoded according to EIP-838

Hierarchy

Index

Constructors

constructor

  • Parameters

    • code: number
    • message: string
    • optionaldata: string

    Returns Eip838ExecutionError

Properties

code

code: number

optionaldata

data?: string

optionalerrorArgs

errorArgs?: {}

Type declaration

    optionalerrorName

    errorName?: string

    optionalerrorSignature

    errorSignature?: string

    innerError

    innerError: undefined | Error | Error[]

    readonlyname

    name: string

    optionalreceipt

    stack

    stack: undefined | string

    Methods

    setDecodedProperties

    • setDecodedProperties(errorName: string, errorSignature?: string, errorArgs?: {}): void
    • Parameters

      • errorName: string
      • optionalerrorSignature: string
      • optionalerrorArgs: {}

      Returns void

    toJSON

    • toJSON(): { code: number; innerError: undefined | Error | Error[]; message: string; name: string }
    • Returns { code: number; innerError: undefined | Error | Error[]; message: string; name: string }

      • code: number
      • innerError: undefined | Error | Error[]
      • message: string
      • name: string

    staticconvertToString

    • convertToString(value: unknown, unquotValue?: boolean): string
    • Parameters

      • value: unknown
      • optionalunquotValue: boolean

      Returns string