public final class WorkspaceUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static IResourceLogger |
getResourceLogger()
Returns the resource logger.
|
static void |
handleException(Exception exception)
Handles the given exception by wrapping it in a
RuntimeException and propagating it to all registered
exception handlers. |
static void |
handleException(String errorMessage,
Exception exception)
Handles the given exception by wrapping it in a
RuntimeException and propagating it to all registered
exception handlers. |
static void |
log(String message,
Exception exception,
int statusInt)
Log a warning to the error log.
|
static void |
log(String message,
int statusInt)
Log a message.
|
static void |
logException(String message,
Exception e)
Log an exception to the error log.
|
static void |
logWarning(String message,
Exception e)
Log a warning to the error log.
|
public static IResourceLogger getResourceLogger()
public static void logException(String message, Exception e)
message - the messagee - the exceptionpublic static void logWarning(String message, Exception e)
message - the messagee - the exceptionpublic static void log(String message, Exception exception, int statusInt)
message - the messageexception - the exception or null f not applicablestatusInt - the status constant as defined in IStatuspublic static void log(String message, int statusInt)
message - the messagestatusInt - the status constant as defined in IStatuspublic static void handleException(String errorMessage, Exception exception)
RuntimeException and propagating it to all registered
exception handlers. If no exception handler did handle the exception
a the wrapped exception will be re-thrown.errorMessage - the error message that should be used for propagating the exceptionexception - the actual exceptionpublic static void handleException(Exception exception)
RuntimeException and propagating it to all registered
exception handlers. If no exception handler did handle the exception
a the wrapped exception will be re-thrown.exception - the actual exceptionCopyright © 2017. All rights reserved.