(model: string, message?: string, options?: ErrorOptions)
| 108 | } |
| 109 | |
| 110 | export 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 | |
| 116 | export function createInvalidInputError(message: string, model?: string, options?: ErrorOptions) { |
| 117 | const error = new ORMError(ORMErrorReason.INVALID_INPUT, message, options); |
no outgoing calls
no test coverage detected