|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.exception.ExceptionIncident
public class ExceptionIncident
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.
Field Summary | |
---|---|
static String |
GENERIC_SYSTEM_ERROR_MESSAGE
|
protected Map<String,String> |
properties
Basic exception information is initialized and contained in this class instance. |
Fields inherited from interface org.kuali.rice.krad.exception.KualiExceptionIncident |
---|
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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.
Constructor Detail |
---|
public ExceptionIncident(Exception exception, Map<String,String> properties)
exception
- Caught exceptionexceptionNames
- List of Kuali exception for determining the display exception
messageproperties
- Input information when the exception is caught
Example:
public ExceptionIncident(Map<String,String> inputs)
inputs
- List of exception information such as
Method Detail |
---|
public String getExceptionStackTrace(Exception thrownException)
thrownException
-
public String getDisplayMessage(Exception exception)
getDisplayMessage
in interface KualiExceptionIncident
KualiExceptionIncident.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |