| 1 | import { HttpStatus } from '@nestjs/common'; |
| 2 | |
| 3 | import { DomainError } |
| 4 | |
| 5 | export class OauthAppNotFoundError |
| 6 | status: number |
| 7 | |
| 8 | constructor() { |
| 9 | super('OAuth app not found on this account'); |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | export class BuiltInOauthAppError |
| 14 | status: number |
| 15 | |
| 16 | constructor() { |
| 17 | super('Built-in OAuth apps cannot be changed'); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | export class AuthorizedOauthAppNotFoundError |
| 22 | status: number |
| 23 | |
| 24 | constructor() { |
| 25 | super('This account has not authorized that OAuth app'); |
| 26 | } |
| 27 | } |