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
ConstructorsConstructorDescriptionUIBasedWorkflowExceptionHandler(boolean shouldThrowException) An Eclipse UI based workflow exception handler which interacts with the Eclipse UI in case of failures. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandle critical exceptions.protected voidlog 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:WorkflowExceptionHandlerhandle critical exceptions. either throws the exception or presents it to the user with an error dialog- Overrides:
handleCriticalExceptionin classWorkflowExceptionHandler- Parameters:
e- the exception to handle
-
logException
Description copied from class:WorkflowExceptionHandlerlog the exception. Can be overriden in subclasses. Default implementation does nothing here- Overrides:
logExceptionin classWorkflowExceptionHandler- Parameters:
e- the exception to log
-