Class JRValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.design.JRValidationException
- All Implemented Interfaces:
Serializable
An exception that contains a list of
report validation faults.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Field Summary
Fields inherited from class net.sf.jasperreports.engine.JRException
EXCEPTION_MESSAGE_KEY_PREFIX, EXCEPTION_MESSAGES_BUNDLE -
Constructor Summary
ConstructorsConstructorDescriptionJRValidationException(String message, Object source) Creates a validation exception containing a single fault.JRValidationException(String message, Collection<JRValidationFault> faults) Create a validation exception.Create an exception.Creates a validation exception containing a single fault. -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringappendMessages(String header, Collection<JRValidationFault> faults) Returns the list ofvalidation faults.Methods inherited from class net.sf.jasperreports.engine.JRException
getArgs, getMessage, getMessage, getMessageBundleName, getMessageKey, getMessageKeyPrefix, resolveMessageMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
JRValidationException
Creates a validation exception containing a single fault.- Parameters:
message- the validation messagesource- the validation source- See Also:
-
JRValidationException
Creates a validation exception containing a single fault.- Parameters:
fault- the fault
-
JRValidationException
Create an exception.- Parameters:
faults- a list ofvalidation faults
-
JRValidationException
Create a validation exception.- Parameters:
message- the message to be used as header for the exception messagefaults- a list ofvalidation faults
-
-
Method Details
-
getFaults
Returns the list ofvalidation faults.- Returns:
- the list of
JRValidationFaultinstances.
-
appendMessages
-