Class PanicBuiltinContractError

Wrapper class for Panic error thrown by a contract.

Hierarchy (view full)

Constructors

Properties

cause: Error

Remarks

Below ES2022, Error has no cause. Adding it here as fallback so it is still accessible.

code: BN
message: string
name: string
stack?: string
factory: ContractErrorFactory<PendleSdkError, ((errorData, ethersJsError) => undefined | ErrorBuiltinContractError | PanicBuiltinContractError)> = ...

Type declaration

prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc