Class PdfGenerationException

All Implemented Interfaces:
Serializable

public final class PdfGenerationException extends LetterPdfException
Indicates failure while composing, laying out, rendering or post-processing a PDF. The generator returns no PDF byte array when this exception is thrown. Its cause can provide engine or watermark-processing details; invalid input detected by validation instead uses InvalidLetterException.
See Also:
  • Constructor Details

    • PdfGenerationException

      public PdfGenerationException(String message, Throwable cause)
      Creates a rendering failure while retaining its underlying cause.
      Parameters:
      message - diagnostic describing the failed generation stage, or null
      cause - underlying engine or post-processing failure, or null
    • PdfGenerationException

      public PdfGenerationException(String message, Throwable cause, List<Diagnostic> diagnostics)
      Creates a rejected layout with classified errors and its underlying cause.
      Parameters:
      message - readable failure explanation
      cause - underlying engine failure
      diagnostics - structured errors, snapshotted
  • Method Details

    • diagnostics

      public List<Diagnostic> diagnostics()
      Returns:
      immutable layout errors, empty for unclassified processing failures