MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / createNotFoundError

Function createNotFoundError

packages/orm/src/client/errors.ts:110–114  ·  view source on GitHub ↗
(model: string, message?: string, options?: ErrorOptions)

Source from the content-addressed store, hash-verified

108}
109
110export function createNotFoundError(model: string, message?: string, options?: ErrorOptions) {
111 const error = new ORMError(ORMErrorReason.NOT_FOUND, message ?? 'Record not found', options);
112 error.model = model;
113 return error;
114}
115
116export function createInvalidInputError(message: string, model?: string, options?: ErrorOptions) {
117 const error = new ORMError(ORMErrorReason.INVALID_INPUT, message, options);

Callers 8

proceedFunction · 0.90
loadThisEntityFunction · 0.90
updateFunction · 0.90
connectRelationFunction · 0.90
setRelationFunction · 0.90
deleteRelationFunction · 0.90
runDeleteMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected