API ReferenceErrorsClass
ProviderConnectionError
Error indicating a connection failure when submitting a transaction to the provider.
Extends
Extended by
Constructors
Constructor
new ProviderConnectionError(message?, cause?): ProviderConnectionError;Parameters
| Parameter | Type | Default value |
|---|---|---|
message | string | 'Error reaching provider' |
cause? | unknown | undefined |
Returns
ProviderConnectionError
Overrides
Methods
walk()
walk<T>(errorType): T | undefined;Checks if the provided ErrorType is in the error hierarchy for the current error.
Type Parameters
| Type Parameter | Description |
|---|---|
T extends Error | The type of the error being searched for. |
Parameters
| Parameter | Type | Description |
|---|---|---|
errorType | (…args) => T | The error type to find. |
Returns
T | undefined
The error, if it is found in the hierarchy, otherwise undefined.