Class InvalidPayloadClassException

All Implemented Interfaces:
Serializable

public class InvalidPayloadClassException extends PdfferProducerException
An exception raised when the producer is given a different payload instance to the class expected by the template.
See Also:
Serialized Form
  • Constructor Details

    • InvalidPayloadClassException

      public InvalidPayloadClassException(Class<?> actualPayloadClass, Class<?> expectedPayloadClass)
      Creates a new instance.
      Parameters:
      actualPayloadClass - the class of the payload instance the producer was given
      expectedPayloadClass - the payload class expected by the PDF template
  • Method Details

    • getActualPayloadClass

      public Class<?> getActualPayloadClass()
      Gets the class of the payload instance the producer was given.
      Returns:
      the class of the payload instance
    • getExpectedPayloadClass

      public Class<?> getExpectedPayloadClass()
      Gets the payload class expected by the PDF template.
      Returns:
      the class expected by the template