(message?: string)
| 88 | } |
| 89 | |
| 90 | export const notFound = (message?: string): ServiceError => { |
| 91 | return { |
| 92 | statusCode: StatusCodes.NOT_FOUND, |
| 93 | errorCode: ErrorCode.NOT_FOUND, |
| 94 | message: message ?? "Not found", |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | export const userNotFound = (): ServiceError => { |
| 99 | return { |
no outgoing calls
no test coverage detected