Class ParseException

All Implemented Interfaces:
Serializable

public class ParseException extends Exception
Thrown by Layer 1 document parsers (PDF / DOCX) when a source file cannot be parsed or when a structural invariant is violated. Carries the source filename and (when known) the page number where parsing failed — enough detail for a downstream auditor to open the exact page in a reader.

Checked.

Invariants:

  • errorCode non-null and non-blank.
  • message non-null.
  • sourceName non-null and non-blank.
  • pageNumber is a non-null OptionalInt; pass OptionalInt.empty() (not null) when the failure cannot be tied to a specific page.
Since:
0.1.0
See Also: