Skip to content

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.

new EntityRecordNotFoundError(entityId, recordId): EntityRecordNotFoundError;

Defined in: core/src/error/error.ts:212

Parameter Type
entityId string
recordId string

EntityRecordNotFoundError

NotFoundError.constructor

readonly entityId: string;

Defined in: core/src/error/error.ts:209


readonly recordId: string;

Defined in: core/src/error/error.ts:210