Class KyberSwapAggregatorHelperRequestError

Remarks

Response error, as specified for https://aggregator-api.kyberswap.com/{chain}/api/v1/routes endpoint. However, the legacy one now is also using the error.

Hierarchy (view full)

Constructors

Properties

cause?: unknown

Remarks

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

message: string
name: string
requestData: KyberAPIParams
requestErrorMessage: string
requestId: string
stack?: string
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