Class ParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ai.doctruth.ParseException
- All Implemented Interfaces:
Serializable
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:
errorCodenon-null and non-blank.messagenon-null.sourceNamenon-null and non-blank.pageNumberis a non-nullOptionalInt; passOptionalInt.empty()(notnull) when the failure cannot be tied to a specific page.
- Since:
- 0.1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionParseException(String errorCode, String message, String sourceName, OptionalInt pageNumber) ParseException(String errorCode, String message, String sourceName, OptionalInt pageNumber, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ParseException
-
ParseException
public ParseException(String errorCode, String message, String sourceName, OptionalInt pageNumber, Throwable cause)
-
-
Method Details
-
errorCode
-
sourceName
-
pageNumber
-