Class NoRouteFoundError

Pendle SDK Error base class to be extended by all errors.

Remarks

We use this class for later error handling and wrapping.

By wrapping all the errors throw by Ethers.js with this class, we can show user-friendly error messages to users.

Hierarchy (view full)

Constructors

Properties

actionName: string
cause?: unknown

Remarks

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

message: string
name: string
stack?: string
tokenInAddress: Address
tokenOutAddress: Address
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