Class InvalidTemplateClassException

All Implemented Interfaces:
Serializable

public class InvalidTemplateClassException extends PdfferProducerException

An exception raised when the producer is given a template that is not the expected class.

This is currently a problem when using any of the JSON or Java map methods in the producer but the template is not a subclass of AbstractJacksonPdfTemplate.

See Also:
Serialized Form
  • Constructor Details

    • InvalidTemplateClassException

      public InvalidTemplateClassException(Class<? extends PdfTemplate> actualTemplateClass, Class<? extends PdfTemplate> expectedTemplateClass)
      Creates a new instance.
      Parameters:
      actualTemplateClass - the class of the template being used
      expectedTemplateClass - the expected superclass of templates that can be used
  • Method Details

    • getActualTemplateClass

      public Class<? extends PdfTemplate> getActualTemplateClass()
      Gets the actual class of the template being used.
      Returns:
      the actual template class
    • getExpectedTemplateClass

      public Class<? extends PdfTemplate> getExpectedTemplateClass()
      Gets the expected superclass of templates that can be used.
      Returns:
      the expected template superclass