about summary refs log tree commit diff
path: root/src/lib/media/video/errors.ts
blob: a06a239e1795fdc5e0ba83631d63f968471e2354 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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'
  }
}