1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-28 23:28:16 +02:00

[api-minor] Remove the image-related error message prefixes

Other custom errors, based on `BaseException`, do not use such a format.
This commit is contained in:
Jonas Jenwald 2024-04-20 12:48:33 +02:00
parent 5ad42c13ad
commit 912b57b95d
8 changed files with 33 additions and 15 deletions

View file

@ -18,7 +18,7 @@ import OpenJPEG from "../../external/openjpeg/openjpeg.js";
class JpxError extends BaseException {
constructor(msg) {
super(`JPX error: ${msg}`, "JpxError");
super(msg, "JpxError");
}
}
@ -68,4 +68,4 @@ class JpxImage {
}
}
export { JpxImage };
export { JpxError, JpxImage };