Error wrapper for calls made to the contract on chain

Hierarchy

  • Error
    • ContractError

Constructors

  • Constructs the Error Wrapper

    Parameters

    • error: Error

      Original error raised probably by the chain SDK

    • Optionalcode: string

      extracted code from the error if managed to parse it

    • Optionaldescription: string

    Returns ContractError

Properties

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

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void