EntityRecordNotFoundError
Defined in: core/src/error/error.ts:208
Thrown when an entity type has no record under the requested id.
An entity’s own get reports absence by returning undefined, which is the
right shape for a resolver. This exists for the transports on top: a route
whose response schema is the record itself cannot serialize “nothing”, so
without this a missing record surfaces as a serialization failure — a 500 for
the ordinary act of asking about something that is not there.
Extends
Section titled “Extends”Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new EntityRecordNotFoundError(entityId, recordId): EntityRecordNotFoundError;Defined in: core/src/error/error.ts:212
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
entityId |
string |
recordId |
string |
Returns
Section titled “Returns”EntityRecordNotFoundError
Overrides
Section titled “Overrides”Properties
Section titled “Properties”entityId
Section titled “entityId”readonly entityId: string;Defined in: core/src/error/error.ts:209
recordId
Section titled “recordId”readonly recordId: string;Defined in: core/src/error/error.ts:210