Skip to main content

Eip838ExecutionError

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

Hierarchy

Index

Constructors

publicconstructor

Properties

publiccause

cause: undefined | Eip838ExecutionError

publiccode

code: number

publicoptionaldata

data?: string

publicoptionalerrorArgs

errorArgs?: {}

Type declaration

    publicoptionalerrorName

    errorName?: string

    publicoptionalerrorSignature

    errorSignature?: string

    publicreadonlyname

    name: string

    publicoptionalreceipt

    publicstack

    stack: undefined | string

    Accessors

    publicinnerError

    • get innerError(): undefined | Error | Error[]
    • set innerError(cause: undefined | Error | Error[]): void
    • @deprecated

      Use the cause property instead.


      Returns undefined | Error | Error[]

    • @deprecated

      Use the cause property instead.


      Parameters

      • cause: undefined | Error | Error[]

      Returns void

    Methods

    publicsetDecodedProperties

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

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

      Returns void

    publictoJSON

    • toJSON(): { cause: undefined | Eip838ExecutionError; code: number; data: string; errorArgs?: {}; errorName?: string; errorSignature?: string; innerError: undefined | Eip838ExecutionError; message: string; name: string }
    • Returns { cause: undefined | Eip838ExecutionError; code: number; data: string; errorArgs?: {}; errorName?: string; errorSignature?: string; innerError: undefined | Eip838ExecutionError; message: string; name: string }

      • cause: undefined | Eip838ExecutionError
      • code: number
      • data: string
      • optionalerrorArgs?: {}
        • optionalerrorName?: string
        • optionalerrorSignature?: string
        • innerError: undefined | Eip838ExecutionError
        • message: string
        • name: string

      publicstaticconvertToString

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

        • value: unknown
        • unquotValue: boolean = false

        Returns string