BaseError
Defined in: aa-sdk/core/src/errors/base.ts:24
A custom error class that extends from ViemBaseError
. This class allows for error messages to include links to relevant documentation based on provided docsPath
and docsSlug
parameters.
This is based on on viem’s BaseError type (obviously from the import and extend)
we want the errors here to point to our docs if we supply a docsPath though
Extends
BaseError
Extended by
AccountNotFoundError
NotAModularAccountV2Error
AccountRequiresOwnerError
BatchExecutionNotSupportedError
DefaultFactoryNotDefinedError
FailedToGetStorageSlotError
GetCounterFactualAddressError
IncorrectAccountType
SignTransactionNotSupportedError
SmartAccountWithSignerRequiredError
UpgradeToAndCallNotSupportedError
UpgradesNotSupportedError
ChainNotFoundError
IncompatibleClientError
InvalidRpcUrlError
InvalidEntityIdError
InvalidNonceKeyError
EntityIdOverrideError
InvalidModularAccountV2Mode
InvalidDeferredActionNonce
EntryPointNotFoundError
InvalidEntryPointError
InvalidSignerTypeError
FailedToFindTransactionError
TransactionMissingToParamError
InvalidUserOperationError
WaitForUserOperationError
Constructors
Constructor
Defined in: aa-sdk/core/src/errors/base.ts:28
Parameters
Returns
BaseError
Overrides
Properties
Methods
walk()
Call Signature
Defined in: node_modules/viem/_types/errors/base.d.ts:26
Returns
Error
Inherited from
Call Signature
Defined in: node_modules/viem/_types/errors/base.d.ts:27
Parameters
Returns
null
| Error
Inherited from
captureStackTrace()
Defined in: node_modules/@types/node/globals.d.ts:145
Creates a .stack
property on targetObject
, which when accessed returns
a string representing the location in the code at which
Error.captureStackTrace()
was called.
The first line of the trace will be prefixed with
${myObject.name}: ${myObject.message}
.
The optional constructorOpt
argument accepts a function. If given, all frames
above constructorOpt
, including constructorOpt
, will be omitted from the
generated stack trace.
The constructorOpt
argument is useful for hiding implementation
details of error generation from the user. For instance:
Parameters
Returns
void
Inherited from
prepareStackTrace()
Defined in: node_modules/@types/node/globals.d.ts:149
Parameters
Returns
any
See
https://v8.dev/docs/stack-trace-api#customizing-stack-traces