public class ExceptionIncident extends Object implements KualiExceptionIncident
Modifier and Type | Field and Description |
---|---|
static String |
GENERIC_SYSTEM_ERROR_MESSAGE |
protected Map<String,String> |
properties
Basic exception information is initialized and contained in this class instance.
|
COMPONENT_NAME, DESCRIPTION, DISPLAY_MESSAGE, DOCUMENT_ID, EXCEPTION_HIDE_INCIDENT_REPORT, EXCEPTION_MESSAGE, EXCEPTION_REPORT_MESSAGE, EXCEPTION_REPORT_SUBJECT, STACK_TRACE, USER_EMAIL, USER_NAME, UUID
Constructor and Description |
---|
ExceptionIncident(Exception exception,
Map<String,String> properties)
This constructs list of key-value pairs from the caught exception and current
settings.
|
ExceptionIncident(Map<String,String> inputs)
This constructs an instance of this class from list of name-value pairs.
|
Modifier and Type | Method and Description |
---|---|
String |
getDisplayMessage(Exception exception)
This overridden method return the exception if the ixception type is in the
defined list.
|
String |
getExceptionStackTrace(Exception thrownException)
This method return the thrown exception stack trace as string.
|
String |
getProperty(String key)
This overridden method returns value of the found property key.
|
Map<String,String> |
toProperties()
This overridden method return current internal properties.
|
public static final String GENERIC_SYSTEM_ERROR_MESSAGE
protected Map<String,String> properties
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.
public ExceptionIncident(Exception exception, Map<String,String> properties)
exception
- Caught exceptionproperties
- Input information when the exception is caught
Example:
public ExceptionIncident(Map<String,String> inputs)
inputs
- List of exception information such as
public String getExceptionStackTrace(Exception thrownException)
thrownException
- public String getDisplayMessage(Exception exception)
getDisplayMessage
in interface KualiExceptionIncident
exception
- The caught exceptionKualiExceptionIncident.getDisplayMessage(Exception)
public String getProperty(String key)
getProperty
in interface KualiExceptionIncident
KualiExceptionIncident.getProperty(java.lang.String)
public Map<String,String> toProperties()
toProperties
in interface KualiExceptionIncident
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
KualiExceptionIncident.toProperties()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.