public class ErrorHelper extends Object
Constructor and Description |
---|
ErrorHelper() |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.core.runtime.IStatus |
createErrorStatus(String message) |
static org.eclipse.core.runtime.IStatus |
createErrorStatus(String message,
Throwable throwable)
Create an Eclipse Status message with details about the exceptions
including text from all the exception causes.
|
static org.eclipse.core.runtime.IStatus |
createErrorStatus(Throwable throwable) |
static String |
enrichErrorMessage(String message,
String exceptionType)
exceptionType is String because of FailureObject
|
static 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) |
public static void logThrowable(Throwable throwable)
public static void logThrowableAndShowMessage(Throwable throwable, String message)
public static void logThrowableAndShowMessage(Throwable throwable)
public static void showErrorMessage(Throwable throwable)
public static void showErrorMessage(String message)
public static void showInfoMessage(String message)
public static org.eclipse.core.runtime.IStatus createErrorStatus(String message)
public static org.eclipse.core.runtime.IStatus createErrorStatus(Throwable throwable)
public static org.eclipse.core.runtime.IStatus createErrorStatus(String message, Throwable throwable)
message
- throwable
-