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

public class LetterPdfException extends RuntimeException
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 Details

    • LetterPdfException

      public LetterPdfException(String message)
      Creates a library failure with a descriptive message and no cause.
      Parameters:
      message - diagnostic message, or null if unavailable
    • LetterPdfException

      public LetterPdfException(String message, Throwable cause)
      Creates a library failure retaining the underlying failure for diagnosis.
      Parameters:
      message - diagnostic message, or null if unavailable
      cause - underlying failure, or null if none