Package org.kuali.rice.krad.exception
Interface KualiExceptionIncident
- All Known Implementing Classes:
ExceptionIncident
public interface KualiExceptionIncident
This class 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 Summary
FieldsModifier and TypeFieldDescriptionstatic final StringForm that threw the exceptionstatic final StringAdditional message from userstatic final StringThe error message to be displayedstatic final StringDocument id. it's blank if not a document processstatic final StringBoolean value for incident report displaystatic final StringThe error messagestatic final StringThe error report messagestatic final StringThe error report subject built from current settings and caught exceptionstatic final StringDetail message not for displayingstatic final StringSession user email addressstatic final StringSession user namestatic final StringSession user login name -
Method Summary
Modifier and TypeMethodDescriptiongetDisplayMessage(Exception exception) This method checks the exception (set during construction) and return error message if it's Kuali type of exception (defined by the list of exception names).getProperty(String key) This method get the specified key value from the implementing class.This method return list of {key,value} pairs that each key is the constants defined in this interface.
-
Field Details
-
EXCEPTION_REPORT_SUBJECT
The error report subject built from current settings and caught exceptionValue is exceptionReportSubject
- See Also:
-
EXCEPTION_HIDE_INCIDENT_REPORT
Boolean value for incident report display- See Also:
-
EXCEPTION_REPORT_MESSAGE
The error report messageValue is exceptionReportMessage
- See Also:
-
EXCEPTION_MESSAGE
The error messageValue is exceptionMessage
- See Also:
-
DISPLAY_MESSAGE
The error message to be displayedValue is displayMessage
- See Also:
-
DESCRIPTION
Additional message from userValue is description
- See Also:
-
DOCUMENT_ID
Document id. it's blank if not a document processValue is documentId
- See Also:
-
USER_EMAIL
Session user email addressValue is userEmail
- See Also:
-
UUID
Session user login nameValue is principalName
- See Also:
-
USER_NAME
Session user nameValue is userName
- See Also:
-
STACK_TRACE
Detail message not for displayingValue is stackTrace
- See Also:
-
COMPONENT_NAME
Form that threw the exceptionValue is componentName
- See Also:
-
-
Method Details
-
toProperties
This method return list of {key,value} pairs that each key is the constants defined in this interface.- Returns:
Example:
documentId, 2942084 userEmail, someone@somewhere userName, some name componentFormName, Form that threw exception name exceptionMessage, Error message from exception displayMessage, Either exception error message or generic exception error message stackTrace, Exception stack trace here
-
getDisplayMessage
This method checks the exception (set during construction) and return error message if it's Kuali type of exception (defined by the list of exception names). Otherwise, it returns a generic message.- Parameters:
exception- The caught exception- Returns:
- display message
-
getProperty
This method get the specified key value from the implementing class.- Parameters:
key-- Returns:
- null is return if not found
-