Files
bsky-social-app/src/lib/media/video/errors.ts
T
2025-03-14 19:36:46 +02:00

21 lines
428 B
TypeScript

export class VideoTooLargeError extends Error {
constructor() {
super('Videos cannot be larger than 100 MB')
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'
}
}