mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Merge pull request #17979 from Snuffleupagus/image-errors-shorter-msg
[api-minor] Remove the image-related error message prefixes
This commit is contained in:
commit
335d8394cd
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 };
|
||||
|
|
|
@ -19,7 +19,7 @@ import { readUint16 } from "./core_utils.js";
|
|||
|
||||
class JpegError extends BaseException {
|
||||
constructor(msg) {
|
||||
super(`JPEG error: ${msg}`, "JpegError");
|
||||
super(msg, "JpegError");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1580,4 +1580,4 @@ class JpegImage {
|
|||
}
|
||||
}
|
||||
|
||||
export { JpegImage };
|
||||
export { JpegError, JpegImage };
|
||||
|
|
|
@ -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 };
|
||||
|
|
|
@ -18,9 +18,9 @@ import {
|
|||
setVerbosityLevel,
|
||||
VerbosityLevel,
|
||||
} from "./shared/util.js";
|
||||
import { Jbig2Image } from "./core/jbig2.js";
|
||||
import { JpegImage } from "./core/jpg.js";
|
||||
import { JpxImage } from "./core/jpx.js";
|
||||
import { Jbig2Error, Jbig2Image } from "./core/jbig2.js";
|
||||
import { JpegError, JpegImage } from "./core/jpg.js";
|
||||
import { JpxError, JpxImage } from "./core/jpx.js";
|
||||
|
||||
/* eslint-disable-next-line no-unused-vars */
|
||||
const pdfjsVersion =
|
||||
|
@ -31,8 +31,11 @@ const pdfjsBuild =
|
|||
|
||||
export {
|
||||
getVerbosityLevel,
|
||||
Jbig2Error,
|
||||
Jbig2Image,
|
||||
JpegError,
|
||||
JpegImage,
|
||||
JpxError,
|
||||
JpxImage,
|
||||
setVerbosityLevel,
|
||||
VerbosityLevel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue