Package org.csstudio.opibuilder.util
Class ErrorHandlerUtil
java.lang.Object
org.csstudio.opibuilder.util.ErrorHandlerUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
handleError
(String message, Throwable exception) This method will callhandleError(String, Throwable, boolean, boolean)
with writeToConsole as true and popErrorDialog as false.static void
handleError
(String message, Throwable exception, boolean writeToConsole, boolean popErrorDialog) General error handle method.
-
Constructor Details
-
ErrorHandlerUtil
public ErrorHandlerUtil()
-
-
Method Details
-
handleError
public static void handleError(String message, Throwable exception, boolean writeToConsole, boolean popErrorDialog) General error handle method.- Parameters:
message
- message of the error.exception
- the exception.writeToConsole
- true if message will output to console.popErrorDialog
- true if an error dialog will popup. Must be called in UI thread if this is true.
-
handleError
This method will callhandleError(String, Throwable, boolean, boolean)
with writeToConsole as true and popErrorDialog as false.
-