1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-24 17:18:07 +02:00
pdf.js/examples
Jonas Jenwald 75cba72ca6 [api-major] Replace MissingPDFException and UnexpectedResponseException with one exception
These old exceptions have a fair amount of overlap given how/where they are being used, which is likely because they were introduced at different points in time, hence we can shorten and simplify the code by replacing them with a more general `ResponseException` instead.

Besides an error message, the new `ResponseException` instances also include:
 - A numeric `status` field containing the server response status, similar to the old `UnexpectedResponseException`.

 - A boolean `missing` field, to allow easily detecting the situations where `MissingPDFException` was previously thrown.
2025-01-16 22:51:05 +01:00
..
components Update the examples/-folder to account for outputting of JavaScript modules (PR 17055 follow-up) 2023-10-28 10:26:25 +02:00
image_decoders Update the examples/-folder to account for outputting of JavaScript modules (PR 17055 follow-up) 2023-10-28 10:26:25 +02:00
learning Give all HTML button elements a type 2024-07-30 18:49:18 +02:00
mobile-viewer [api-major] Replace MissingPDFException and UnexpectedResponseException with one exception 2025-01-16 22:51:05 +01:00
node Migrate to ESLint flat config 2024-11-12 16:15:17 +01:00
text-only Update the examples/-folder to account for outputting of JavaScript modules (PR 17055 follow-up) 2023-10-28 10:26:25 +02:00
webpack Migrate to ESLint flat config 2024-11-12 16:15:17 +01:00