mirror of https://git.lenooby09.tech/LeNooby09/social-app.git
at thread-bug 428 B view raw
1export class VideoTooLargeError extends Error { 2 constructor() { 3 super('Videos cannot be larger than 100 MB') 4 this.name = 'VideoTooLargeError' 5 } 6} 7 8export class ServerError extends Error { 9 constructor(message: string) { 10 super(message) 11 this.name = 'ServerError' 12 } 13} 14 15export class UploadLimitError extends Error { 16 constructor(message: string) { 17 super(message) 18 this.name = 'UploadLimitError' 19 } 20}