| 1 | import { HttpStatus } from '@nestjs/common'; |
| 2 | import { DomainError } |
| 3 | |
| 4 | export class CodeSearchUnavailableError |
| 5 | status: number |
| 6 | |
| 7 | constructor(options?: |
| 8 | super('Code search is not available right now', |
| 9 | } |
| 10 | } |
| 11 | |
| 12 | export class InvalidSearchQueryError |
| 13 | status: number |
| 14 | |
| 15 | constructor(reason: |
| 16 | super(`Invalid search query: ${reason |
| 17 | } |
| 18 | } |