about summary refs log tree commit diff
path: root/src/lib/media/video/errors.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-07-06 01:50:03 +0100
committerGitHub <noreply@github.com>2024-07-05 17:50:03 -0700
commit8f06ba70bb02a9dc3f09285719bd1585cc43aaeb (patch)
treeeacc2a658522826a99d1ca3055fbd54a63ff65de /src/lib/media/video/errors.ts
parent56b688744ef3492a1e93d8a6ee04a116ceb7253a (diff)
downloadvoidsky-8f06ba70bb02a9dc3f09285719bd1585cc43aaeb.tar.zst
Video compression in composer (#4638)
Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com>
Co-authored-by: Hailey <me@haileyok.com>
Diffstat (limited to 'src/lib/media/video/errors.ts')
-rw-r--r--src/lib/media/video/errors.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/media/video/errors.ts b/src/lib/media/video/errors.ts
new file mode 100644
index 000000000..701a7e235
--- /dev/null
+++ b/src/lib/media/video/errors.ts
@@ -0,0 +1,6 @@
+export class VideoTooLargeError extends Error {
+  constructor() {
+    super('Videos cannot be larger than 100MB')
+    this.name = 'VideoTooLargeError'
+  }
+}