(message: string, code: string)
| 14 | } |
| 15 | |
| 16 | export const createNodeError = (message: string, code: string): NodeError => { |
| 17 | const error: NodeError = new Error(message) |
| 18 | error.code = code |
| 19 | return error |
| 20 | } |
| 21 | |
| 22 | export const createPostgresError = ( |
| 23 | message: string, |