20 lines
426 B
TypeScript
20 lines
426 B
TypeScript
export class VideoTooLargeError extends Error {
|
|
constructor() {
|
|
super('Videos cannot be larger than 50mb')
|
|
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'
|
|
}
|
|
}
|