Class LetterPdfException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.nsdev.lettergenerator.exception.LetterPdfException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidLetterException,PdfGenerationException
Unchecked base for caller-facing letter validation and PDF rendering failures. Catch
InvalidLetterException to inspect an invalid input's field path, or PdfGenerationException for composition, layout and post-processing failures. Convenience builder
argument errors may instead use IllegalArgumentException or IllegalStateException
before generation starts.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLetterPdfException(String message) Creates a library failure with a descriptive message and no cause.LetterPdfException(String message, Throwable cause) Creates a library failure retaining the underlying failure for diagnosis. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LetterPdfException
Creates a library failure with a descriptive message and no cause.- Parameters:
message- diagnostic message, or null if unavailable
-
LetterPdfException
Creates a library failure retaining the underlying failure for diagnosis.- Parameters:
message- diagnostic message, or null if unavailablecause- underlying failure, or null if none
-