API ReferenceErrorsClass
ContractNotFoundError
This error is thrown if a contract address is requested by name but not found. This typically indicates a developer / configuration error.
Extends
Constructors
Constructor
new ContractNotFoundError( message, contract, cause?): ContractNotFoundError;Parameters
| Parameter | Type |
|---|---|
message | string |
contract | string |
cause? | unknown |
Returns
ContractNotFoundError
Overrides
Properties
contract
readonly contract: string;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.