mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-29 07:37:57 +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:
parent
5ad42c13ad
commit
912b57b95d
8 changed files with 33 additions and 15 deletions
|
@ -20,7 +20,7 @@ import { CCITTFaxDecoder } from "./ccitt.js";
|
|||
|
||||
class Jbig2Error extends BaseException {
|
||||
constructor(msg) {
|
||||
super(`JBIG2 error: ${msg}`, "Jbig2Error");
|
||||
super(msg, "Jbig2Error");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2593,4 +2593,4 @@ class Jbig2Image {
|
|||
}
|
||||
}
|
||||
|
||||
export { Jbig2Image };
|
||||
export { Jbig2Error, Jbig2Image };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue