Class ExceptionIncident

java.lang.Object
org.kuali.rice.krad.exception.ExceptionIncident
All Implemented Interfaces:
KualiExceptionIncident

public class ExceptionIncident extends Object implements KualiExceptionIncident
Contains the exception incident information, exception, form and session user. It is constructed and saved into the HTTP Request for passing to the jsp when an exception occurs.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

    • GENERIC_SYSTEM_ERROR_MESSAGE

      public static final String GENERIC_SYSTEM_ERROR_MESSAGE
      See Also:
    • properties

      protected Map<String,String> properties
      Basic exception information is initialized and contained in this class instance. Additional setting and other information can be added when exception is caught. Also, an JSP is displayed to collect additional user information and the returned parameters from the JSP can be used to initialize this class instance for reporting.

      Note: The mechanism for passing data to and receiving data from the JSP uses java.util.Map. Therefore, the exception is not passed to JSP using HttpRequest. But rather a Map instance.

  • Constructor Details

    • ExceptionIncident

      public ExceptionIncident(Exception exception, Map<String,String> properties)
      This constructs list of key-value pairs from the caught exception and current settings.
      Parameters:
      exception - Caught exception
      properties - Input information when the exception is caught

      Example:

      • DOCUMENT_ID
      • USER_EMAIL
      • USER_NAME
      • COMPONENT_NAME
    • ExceptionIncident

      public ExceptionIncident(Map<String,String> inputs)
      This constructs an instance of this class from list of name-value pairs.
      Parameters:
      inputs - List of exception information such as
      • DOCUMENT_ID - If it's document form
      • USER_EMAIL - Session user email
      • USER_NAME - Session user name
      • COMPONENT_NAME - Document or lookup or inquiry form attribute of GlobalVariables
      • EXCEPTION_REPORT_SUBJECT - Exception error message and current settings
      • EXCEPTION_MESSAGE - Exception error message
      • STACK_TRACE - Exception stack trace
      • DESCRIPTION - Information input by user or blank
  • Method Details