about summary refs log tree commit diff
path: root/src/lib/media/video/errors.ts
blob: 1c55a9ee9d606cbd281742f363d827aa5a980868 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
export class VideoTooLargeError extends Error {
  constructor() {
    super('Videos cannot be larger than 100MB')
    this.name = 'VideoTooLargeError'
  }
}

export class ServerError extends Error {
  constructor(message: string) {
    super(message)
    this.name = 'ServerError'
  }
}

export class UploadLimitError extends Error {
  constructor(message: string) {
    super(message)
    this.name = 'UploadLimitError'
  }
}