Package org.eclipse.mat.ui.util
Class ErrorHelper
java.lang.Object
org.eclipse.mat.ui.util.ErrorHelper
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic IStatus
createErrorStatus
(String message) static IStatus
createErrorStatus
(String message, Throwable throwable) Create an Eclipse Status message with details about the exceptions including text from all the exception causes.static IStatus
createErrorStatus
(Throwable throwable) static String
enrichErrorMessage
(String message, String exceptionType) exceptionType is String because of FailureObjectstatic void
logThrowable
(Throwable throwable) static void
logThrowableAndShowMessage
(Throwable throwable) static void
logThrowableAndShowMessage
(Throwable throwable, String message) static void
showErrorMessage
(String message) static void
showErrorMessage
(Throwable throwable) static void
showInfoMessage
(String message)
-
Constructor Details
-
ErrorHelper
public ErrorHelper()
-
-
Method Details
-
logThrowable
-
logThrowableAndShowMessage
-
logThrowableAndShowMessage
-
showErrorMessage
-
showErrorMessage
-
showInfoMessage
-
createErrorStatus
-
createErrorStatus
-
createErrorStatus
Create an Eclipse Status message with details about the exceptions including text from all the exception causes. This method is aware of Eclipse CoreExceptions which have child status objects. The details view of the ErrorDialog can then show text from all the exception causes which wouldn't happen without this routine.- Parameters:
message
-throwable
-- Returns:
- the combined status
-
enrichErrorMessage
exceptionType is String because of FailureObject
-