Optional
params: PendleSdkErrorParamsOptional
causeBelow ES2022, Error has no cause
.
Adding it here as fallback so it is still accessible.
Readonly
dataOptional
stackStatic
Optional
prepareOptional override for formatting stack traces
Optional override for formatting stack traces
Static
stackStatic
captureGenerated using TypeDoc
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.