public class ECFRuntimeException
extends java.lang.RuntimeException
Constructor and Description |
---|
ECFRuntimeException() |
ECFRuntimeException(org.eclipse.core.runtime.IStatus status)
Creates a new exception with the given status object.
|
ECFRuntimeException(java.lang.String message) |
ECFRuntimeException(java.lang.String message,
java.lang.Throwable cause) |
ECFRuntimeException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus |
getStatus()
Returns the status object for this exception.
|
public ECFRuntimeException()
public ECFRuntimeException(java.lang.String message)
message
- message associated with exceptionpublic ECFRuntimeException(java.lang.Throwable cause)
cause
- the cause of the new exceptionpublic ECFRuntimeException(java.lang.String message, java.lang.Throwable cause)
message
- cause
- public ECFRuntimeException(org.eclipse.core.runtime.IStatus status)
status
- the status object to be associated with this exceptionpublic org.eclipse.core.runtime.IStatus getStatus()
IMPORTANT:
The result must NOT be used to log a CoreException
(e.g.,
using yourPlugin.getLog().log(status);
), since that code
pattern hides the original stacktrace. Instead, create a new
Status
with your plug-in ID and this CoreException
,
and log that new status.