Package org.eclipse.mat.ui.util
Class ErrorHelper
- java.lang.Object
-
- org.eclipse.mat.ui.util.ErrorHelper
-
public class ErrorHelper extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ErrorHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IStatuscreateErrorStatus(java.lang.String message)static IStatuscreateErrorStatus(java.lang.String message, java.lang.Throwable throwable)Create an Eclipse Status message with details about the exceptions including text from all the exception causes.static IStatuscreateErrorStatus(java.lang.Throwable throwable)static java.lang.StringenrichErrorMessage(java.lang.String message, java.lang.String exceptionType)exceptionType is String because of FailureObjectstatic voidlogThrowable(java.lang.Throwable throwable)static voidlogThrowableAndShowMessage(java.lang.Throwable throwable)static voidlogThrowableAndShowMessage(java.lang.Throwable throwable, java.lang.String message)static voidshowErrorMessage(java.lang.String message)static voidshowErrorMessage(java.lang.Throwable throwable)static voidshowInfoMessage(java.lang.String message)
-
-
-
Method Detail
-
logThrowable
public static void logThrowable(java.lang.Throwable throwable)
-
logThrowableAndShowMessage
public static void logThrowableAndShowMessage(java.lang.Throwable throwable, java.lang.String message)
-
logThrowableAndShowMessage
public static void logThrowableAndShowMessage(java.lang.Throwable throwable)
-
showErrorMessage
public static void showErrorMessage(java.lang.Throwable throwable)
-
showErrorMessage
public static void showErrorMessage(java.lang.String message)
-
showInfoMessage
public static void showInfoMessage(java.lang.String message)
-
createErrorStatus
public static IStatus createErrorStatus(java.lang.String message)
-
createErrorStatus
public static IStatus createErrorStatus(java.lang.Throwable throwable)
-
createErrorStatus
public static IStatus createErrorStatus(java.lang.String message, java.lang.Throwable throwable)
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
public static java.lang.String enrichErrorMessage(java.lang.String message, java.lang.String exceptionType)exceptionType is String because of FailureObject
-
-