| 1 | import { HttpStatus } from '@nestjs/common'; |
| 2 | |
| 3 | import { DomainError } |
| 4 | |
| 5 | export class InvalidSshKeyError |
| 6 | status: number |
| 7 | |
| 8 | constructor(detail: |
| 9 | super(`That is not a usable public key: ${detail |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | export class SshKeyAlreadyExistsError |
| 14 | status: number |
| 15 | |
| 16 | constructor() { |
| 17 | super('That key is already on an account'); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | export class SshKeyNotFoundError |
| 22 | status: number |
| 23 | |
| 24 | constructor() { |
| 25 | super('Key not found on this account'); |
| 26 | } |
| 27 | } |