public class ECFRuntimeException extends RuntimeException
Constructor and Description |
---|
ECFRuntimeException() |
ECFRuntimeException(org.eclipse.core.runtime.IStatus status)
Creates a new exception with the given status object.
|
ECFRuntimeException(String message) |
ECFRuntimeException(String message,
Throwable cause) |
ECFRuntimeException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
org.eclipse.core.runtime.IStatus |
getStatus()
Returns the status object for this exception.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ECFRuntimeException()
public ECFRuntimeException(String message)
message
- message associated with exceptionpublic ECFRuntimeException(Throwable cause)
cause
- the cause of the new exceptionpublic ECFRuntimeException(String message, 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.
Copyright © 2017 Eclipse Foundation. All rights reserved.