|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.client.model.util.WorkspaceUtil
public final class WorkspaceUtil
Workspace utility class.
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 IStatus
public static void log(String message, int statusInt)
message
- the messagestatusInt
- the status constant as defined in IStatus
public 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 exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |