Package com.avoka.fc.core.util
Class SubmissionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.avoka.fc.core.util.ApplicationException
com.avoka.fc.core.util.SubmissionException
- All Implemented Interfaces:
Serializable
Provides a submission related exception storing the form and submitted data.
- See Also:
-
Constructor Summary
ConstructorDescriptionSubmissionException
(String name, String context, String userMessage, String solution, String formCode, Document formData, String helpText) Create a SubmissionException object with the given parametersSubmissionException
(String name, Throwable cause, String context, String userMessage, String solution, String formCode, Document formData, String helpText) Create a SubmissionException object with the given parameters -
Method Summary
Modifier and TypeMethodDescriptionReturn the form code of the form used in submission.Return the submitted XML documentReturn additional help text related to the errorvoid
setFormCode
(String newFormCode) Set the form code of the form used in submission.void
setFormData
(Document newFormData) Set the submitted XML documentvoid
setHelpText
(String newHelpText) Set additional help text related to the errortoString()
Return a String representation of the exceptionMethods inherited from class com.avoka.fc.core.util.ApplicationException
getClient, getContext, getErrorLog, getFormXml, getGroovyServiceLog, getMessageKey, getName, getRequestKey, getSolution, getUserMessage, isLogToErrorLog, setClient, setContext, setErrorLog, setFormXml, setGroovyServiceLog, setLogToErrorLog, setMessageKey, setRequestKey, setSolution, setUserMessage
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
SubmissionException
public SubmissionException(String name, Throwable cause, String context, String userMessage, String solution, String formCode, Document formData, String helpText) Create a SubmissionException object with the given parameters- Parameters:
name
- a name identifying the exceptioncause
- the Throwable causing the errorcontext
- a message describing the context in which the error occurreduserMessage
- a detail message about the error intended for the usersolution
- an optional message outlining a solution to the problemformCode
- the form code of the form used during submissionformData
- the XML data that was submittedhelpText
- additional help text related to the error
-
SubmissionException
public SubmissionException(String name, String context, String userMessage, String solution, String formCode, Document formData, String helpText) Create a SubmissionException object with the given parameters- Parameters:
name
- a name identifying the exceptioncontext
- a message describing the context in which the error occurreduserMessage
- a detail message about the error intended for the usersolution
- an optional message outlining a solution to the problemformCode
- the form code of the form used during submissionformData
- the XML data that was submittedhelpText
- additional help text related to the error
-
-
Method Details
-
getFormCode
Return the form code of the form used in submission. If not set, the form code is retrieved from the submitted form data- Returns:
- the form code
-
setFormCode
Set the form code of the form used in submission.- Parameters:
newFormCode
- the new form code
-
getFormData
Return the submitted XML document- Returns:
- the XML document
-
setFormData
Set the submitted XML document- Parameters:
newFormData
- the XML document
-
getHelpText
Return additional help text related to the error- Returns:
- the help text
-
setHelpText
Set additional help text related to the error- Parameters:
newHelpText
- the new help text
-
toString
Return a String representation of the exception- Overrides:
toString
in classApplicationException
- Returns:
- a String representation of the exception
- See Also:
-