public interface KualiExceptionIncident
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_NAME
Form that threw the exception
|
static String |
DESCRIPTION
Additional message from user
|
static String |
DISPLAY_MESSAGE
The error message to be displayed
|
static String |
DOCUMENT_ID
Document id.
|
static String |
EXCEPTION_HIDE_INCIDENT_REPORT
Boolean value for incident report display
|
static String |
EXCEPTION_MESSAGE
The error message
|
static String |
EXCEPTION_REPORT_MESSAGE
The error report message
|
static String |
EXCEPTION_REPORT_SUBJECT
The error report subject built from current settings and caught exception
|
static String |
STACK_TRACE
Detail message not for displaying
|
static String |
USER_EMAIL
Session user email address
|
static String |
USER_NAME
Session user name
|
static String |
UUID
Session user login name
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayMessage(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).
|
String |
getProperty(String key)
This method get the specified key value from the implementing class.
|
Map<String,String> |
toProperties()
This method return list of {key,value} pairs that each key is the constants
defined in this interface.
|
static final String EXCEPTION_REPORT_SUBJECT
Value is exceptionReportSubject
static final String EXCEPTION_HIDE_INCIDENT_REPORT
static final String EXCEPTION_REPORT_MESSAGE
Value is exceptionReportMessage
static final String EXCEPTION_MESSAGE
Value is exceptionMessage
static final String DISPLAY_MESSAGE
Value is displayMessage
static final String DESCRIPTION
Value is description
static final String DOCUMENT_ID
Value is documentId
static final String USER_EMAIL
Value is userEmail
static final String UUID
Value is principalName
static final String USER_NAME
Value is userName
static final String STACK_TRACE
Value is stackTrace
static final String COMPONENT_NAME
Value is componentName
Map<String,String> toProperties()
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
String getDisplayMessage(Exception exception)
exception
- The caught exceptionString getProperty(String key)
key
- Copyright © 2005–2016 The Kuali Foundation. All rights reserved.