(message: string, model?: string, options?: ErrorOptions)
| 114 | } |
| 115 | |
| 116 | export 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 | |
| 122 | export function createDBQueryError(message: string, dbError: unknown, sql: string, parameters: readonly unknown[]) { |
| 123 | const error = new ORMError(ORMErrorReason.DB_QUERY_ERROR, message, { cause: dbError }); |
no outgoing calls
no test coverage detected