|
Dashboard Builder Commons 6.2.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.dashboard.error.ErrorManager
@ApplicationScoped public class ErrorManager
Manages the error handling in the platform.
| Field Summary | |
|---|---|
protected boolean |
logDBInterlockThreadsEnabled
|
protected boolean |
logErrorReportEnabled
|
| Constructor Summary | |
|---|---|
ErrorManager()
|
|
| Method Summary | |
|---|---|
ApplicationError |
getApplicationErrorCause(Throwable e)
Get the error cause (if any) thrown by the application logic. |
Throwable |
getRootCause(Throwable t)
Get the root exception. |
boolean |
isDBInterlockException(Throwable e)
Check if the specified exception is a DB interlock error. |
boolean |
isLogDBInterlockThreadsEnabled()
|
boolean |
isLogErrorReportEnabled()
|
void |
logError(ErrorReport report)
Log the specified error report. |
static ErrorManager |
lookup()
Get an ExceptionManager instance. |
ErrorReport |
notifyError(Throwable t,
boolean doLog)
Generate an error report and log the error if requested. |
void |
setLogDBInterlockThreadsEnabled(boolean logDBInterlockThreadsEnabled)
|
void |
setLogErrorReportEnabled(boolean logErrorReportEnabled)
|
void |
throwBusinessError(String title,
String message)
Force the given error to be thrown. the current transaction is aborted and the given message string is displayed as an error in a modal window. |
void |
throwBusinessInfo(String title,
String message)
Force the given error to be thrown. the current transaction is aborted and the given message string is displayed as extra information in a modal window. |
void |
throwBusinessWarning(String title,
String message)
Force the given error to be thrown. the current transaction is aborted and the given message string is displayed as a warning in a modal window. |
void |
throwTechnicalError(String message,
Throwable cause)
Force the given error to be thrown. the current transaction is aborted and the give message string is displayed in a error report modal window. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject protected boolean logErrorReportEnabled
@Inject protected boolean logDBInterlockThreadsEnabled
| Constructor Detail |
|---|
public ErrorManager()
| Method Detail |
|---|
public static ErrorManager lookup()
public boolean isLogErrorReportEnabled()
public void setLogErrorReportEnabled(boolean logErrorReportEnabled)
public boolean isLogDBInterlockThreadsEnabled()
public void setLogDBInterlockThreadsEnabled(boolean logDBInterlockThreadsEnabled)
public void throwTechnicalError(String message,
Throwable cause)
Force the given error to be thrown. the current transaction is aborted and the give message string is displayed
in a error report modal window.
NOTE: This functionality is not implemented yet. Nevertheless, the future error handling subsystem will notify such error to the error handling component. Actually, as a temporal solution, the error manager is overridden by the bpe module in order to notify to the StepExecutionErrorHandler component, so the message specified is displayed as part of the error in the BPM task list .
message - The custom message to display in the error window.cause - The cause of the error, also displayed in the error window.
public void throwBusinessError(String title,
String message)
Force the given error to be thrown. the current transaction is aborted and the given message string is displayed
as an error in a modal window.
title - The error window title.message - The custom message to display in the error window.
public void throwBusinessWarning(String title,
String message)
Force the given error to be thrown. the current transaction is aborted and the given message string is displayed
as a warning in a modal window.
title - The error window title.message - The custom message to display in the error window.
public void throwBusinessInfo(String title,
String message)
Force the given error to be thrown. the current transaction is aborted and the given message string is displayed
as extra information in a modal window.
title - The error window title.message - The custom message to display in the error window.public ApplicationError getApplicationErrorCause(Throwable e)
public Throwable getRootCause(Throwable t)
public boolean isDBInterlockException(Throwable e)
public ErrorReport notifyError(Throwable t,
boolean doLog)
public void logError(ErrorReport report)
|
Dashboard Builder Commons 6.2.0.CR4 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||