Package de.uka.ipd.sdq.workflow.ui
Class UIBasedWorkflowExceptionHandler
java.lang.Object
de.uka.ipd.sdq.workflow.WorkflowExceptionHandler
de.uka.ipd.sdq.workflow.ui.UIBasedWorkflowExceptionHandler
Workflow exception handler which is able to interact with the Eclipse UI.
-
Field Summary
Fields inherited from class de.uka.ipd.sdq.workflow.WorkflowExceptionHandler
myShouldThrowException
-
Constructor Summary
ConstructorDescriptionUIBasedWorkflowExceptionHandler
(boolean shouldThrowException) An Eclipse UI based workflow exception handler which interacts with the Eclipse UI in case of failures. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
handle critical exceptions.protected void
log the exception.Methods inherited from class de.uka.ipd.sdq.workflow.WorkflowExceptionHandler
handleCleanupFailed, handleFatalFailure, handleJobFailed, handleUserCanceled
-
Constructor Details
-
UIBasedWorkflowExceptionHandler
public UIBasedWorkflowExceptionHandler(boolean shouldThrowException) An Eclipse UI based workflow exception handler which interacts with the Eclipse UI in case of failures.- Parameters:
shouldThrowException
- Set this to true to disable UI interaction and only to throw exceptions if sth. goes wrong. Usefull for unit tests or batch runs
-
-
Method Details
-
handleCriticalException
Description copied from class:WorkflowExceptionHandler
handle critical exceptions. either throws the exception or presents it to the user with an error dialog- Overrides:
handleCriticalException
in classWorkflowExceptionHandler
- Parameters:
e
- the exception to handle
-
logException
Description copied from class:WorkflowExceptionHandler
log the exception. Can be overriden in subclasses. Default implementation does nothing here- Overrides:
logException
in classWorkflowExceptionHandler
- Parameters:
e
- the exception to log
-