Package org.eclipse.mat.ui.util
Class ErrorHelper
java.lang.Object
org.eclipse.mat.ui.util.ErrorHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IStatuscreateErrorStatus(String message) static IStatuscreateErrorStatus(String message, Throwable throwable) Create an Eclipse Status message with details about the exceptions including text from all the exception causes.static IStatuscreateErrorStatus(Throwable throwable) static StringenrichErrorMessage(String message, String exceptionType) exceptionType is String because of FailureObjectstatic voidlogThrowable(Throwable throwable) static voidlogThrowableAndShowMessage(Throwable throwable) static voidlogThrowableAndShowMessage(Throwable throwable, String message) static voidshowErrorMessage(String message) static voidshowErrorMessage(Throwable throwable) static voidshowInfoMessage(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
-