(message: string, options?: ErrorOptions)
| 104 | } |
| 105 | |
| 106 | export function createConfigError(message: string, options?: ErrorOptions) { |
| 107 | return new ORMError(ORMErrorReason.CONFIG_ERROR, message, options); |
| 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); |
no outgoing calls
no test coverage detected