Class SubmissionException

    • Constructor Detail

      • 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 exception
        cause - the Throwable causing the error
        context - a message describing the context in which the error occurred
        userMessage - a detail message about the error intended for the user
        solution - an optional message outlining a solution to the problem
        formCode - the form code of the form used during submission
        formData - the XML data that was submitted
        helpText - 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 exception
        context - a message describing the context in which the error occurred
        userMessage - a detail message about the error intended for the user
        solution - an optional message outlining a solution to the problem
        formCode - the form code of the form used during submission
        formData - the XML data that was submitted
        helpText - additional help text related to the error
    • Method Detail

      • getFormCode

        public String 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

        public void setFormCode​(String newFormCode)
        Set the form code of the form used in submission.
        Parameters:
        newFormCode - the new form code
      • getFormData

        public Document getFormData()
        Return the submitted XML document
        Returns:
        the XML document
      • setFormData

        public void setFormData​(Document newFormData)
        Set the submitted XML document
        Parameters:
        newFormData - the XML document
      • getHelpText

        public String getHelpText()
        Return additional help text related to the error
        Returns:
        the help text
      • setHelpText

        public void setHelpText​(String newHelpText)
        Set additional help text related to the error
        Parameters:
        newHelpText - the new help text