|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.util.OwExceptionManager
public class OwExceptionManager
Utility class for displaying exceptions in HTML.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Field Summary | |
---|---|
static String |
OWEXCEPTION_ELEMENT_ID
the ID of the HTML element that should be open on click |
Constructor Summary | |
---|---|
OwExceptionManager()
|
Method Summary | |
---|---|
static String |
getExceptionDisplayText(Throwable e_p)
display a exception as HTML |
static String |
getLocalizedMessage(Throwable e_p,
Locale locale_p)
Get the localized message from the given exception. |
static String |
getRelevantStackTrace(Throwable e_p)
Get the relevant stack trace. |
static void |
PrintCatchedException(Locale locale_p,
Throwable e_p,
PrintWriter w_p,
String strStyleClassName_p)
display a exception as HTML |
static void |
PrintCatchedException(Locale locale_p,
Throwable e_p,
PrintWriter w_p,
String strStyleClassName_p,
String elementId_p)
display an exception as HTML |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String OWEXCEPTION_ELEMENT_ID
Constructor Detail |
---|
public OwExceptionManager()
Method Detail |
---|
public static String getExceptionDisplayText(Throwable e_p)
e_p
- Throwable to be displayedpublic static void PrintCatchedException(Locale locale_p, Throwable e_p, PrintWriter w_p, String strStyleClassName_p)
locale_p
- Locale for localize the messagese_p
- Throwable to be displayedw_p
- Writer for HTMLstrStyleClassName_p
- style class used to display the error message e.g. OwErrorStack, OwOwWebApplication_EXCEPTIONpublic static void PrintCatchedException(Locale locale_p, Throwable e_p, PrintWriter w_p, String strStyleClassName_p, String elementId_p)
locale_p
- Locale for localize the messagese_p
- Throwable to be displayedw_p
- Writer for HTMLstrStyleClassName_p
- style class used to display the error message e.g. OwErrorStack, OwOwWebApplication_EXCEPTIONelementId_p
- the ID of the HTML element that should be open on clickpublic static String getLocalizedMessage(Throwable e_p, Locale locale_p)
e_p
- - the Exceptionlocale_p
- - the user Locale
object
public static String getRelevantStackTrace(Throwable e_p)
e_p
- - the exception
String
object, containing the stacktrace.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |