(code: ApiErrorCode, message: string, hint?: string)
| 44 | readonly hint: string | undefined; |
| 45 | |
| 46 | constructor(code: ApiErrorCode, message: string, hint?: string) { |
| 47 | super(message); |
| 48 | this.name = 'ApiError'; |
| 49 | this.code = code; |
| 50 | this.hint = hint; |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | export function badRequest(message: string, hint?: string): ApiError { |
nothing calls this directly
no outgoing calls
no test coverage detected