NotFoundError
What NotFoundError means, which codes it carries and how to catch it in ensforge. Something the call requires does not exist.
Error class7 codes · @ensforge/sdk
Something the call requires does not exist. Reads only throw this with strict: true;
otherwise they return null.
Fields
| Field | Type | Description |
|---|---|---|
resource | string | What was missing, e.g. a record key. |
Codes
| Code | Meaning | Retryable |
|---|---|---|
RESOLVER_NOT_FOUND | The name has no resolver. | No |
RECORD_NOT_FOUND | The record is not set. | No |
PRIMARY_NAME_NOT_SET | The address has no primary name. | No |
PRIMARY_NAME_MISMATCH | The primary name does not resolve back to this address. | No |
REGISTRY_NOT_FOUND | No registry was found for this name. | No |
PLAN_NOT_FOUND | No saved plan was found with this id. | No |
INDEXER_NOT_FOUND | The indexer has no record of this resource. | No |
Catch it
Effect.catchTag("NotFoundError", …) or error instanceof Errors.NotFoundError. See Handle errors.
Was this page helpful?