public class ErrorHelper extends Object
Constructor and Description |
---|
ErrorHelper() |
Modifier and Type | Method and Description |
---|---|
static 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 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 IStatus createErrorStatus(String message, Throwable throwable)
message
- throwable
-