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

Function createInvalidInputError

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

Source from the content-addressed store, hash-verified

114}
115
116export function createInvalidInputError(message: string, model?: string, options?: ErrorOptions) {
117 const error = new ORMError(ORMErrorReason.INVALID_INPUT, message, options);
118 error.model = model;
119 return error;
120}
121
122export function createDBQueryError(message: string, dbError: unknown, sql: string, parameters: readonly unknown[]) {
123 const error = new ORMError(ORMErrorReason.DB_QUERY_ERROR, message, { cause: dbError });

Callers 15

buildJsonArrayFilterMethod · 0.90
buildArrayFilterFunction · 0.90
buildPrimitiveFilterFunction · 0.90
buildJsonFilterFunction · 0.90
buildPlainJsonFilterFunction · 0.90
buildStandardFilterFunction · 0.90
buildStringFilterFunction · 0.90
applyRelationOrderByFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected