public class OwExceptionManager extends Object
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
Modifier and Type | Field and Description |
---|---|
static String |
OWEXCEPTION_ELEMENT_ID
the ID of the HTML element that should be open on click
|
Constructor and Description |
---|
OwExceptionManager() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String OWEXCEPTION_ELEMENT_ID
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
objectCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.