Package org.nekosoft.pdffer.exception
Class InvalidPayloadClassException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.nekosoft.pdffer.exception.PdfferException
org.nekosoft.pdffer.exception.PdfferProducerException
org.nekosoft.pdffer.exception.InvalidPayloadClassException
- All Implemented Interfaces:
Serializable
An exception raised when the producer is given a different payload instance to the class expected by the template.
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionInvalidPayloadClassException(Class<?> actualPayloadClass, Class<?> expectedPayloadClass)
Creates a new instance. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidPayloadClassException
Creates a new instance.- Parameters:
actualPayloadClass
- the class of the payload instance the producer was givenexpectedPayloadClass
- the payload class expected by the PDF template
-
-
Method Details
-
getActualPayloadClass
Gets the class of the payload instance the producer was given.- Returns:
- the class of the payload instance
-
getExpectedPayloadClass
Gets the payload class expected by the PDF template.- Returns:
- the class expected by the template
-