|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectCoreException
org.eclipse.cdt.core.model.CModelException
public class CModelException
A checked exception representing a failure in the C model. C model exceptions contain a C-specific status object describing the cause of the exception.
ICModelStatus
,
ICModelStatusConstants
Constructor Summary | |
---|---|
CModelException(CoreException exception)
Creates a C model exception for the given CoreException . |
|
CModelException(Throwable e,
int code)
Creates a C model exception that wrappers the given Throwable . |
Method Summary | |
---|---|
boolean |
doesNotExist()
Returns whether this exception indicates that a C model element does not exist. |
ICModelStatus |
getCModelStatus()
Returns the C model status object for this exception. |
Throwable |
getException()
Returns the underlying Throwable that caused the failure. |
String |
toString()
Returns a printable representation of this exception suitable for debugging purposes only. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CModelException(Throwable e, int code)
Throwable
.
The exception contains a C-specific status object with severity
IStatus.ERROR
and the given status code.
exception
- the Throwable
code
- one of the C-specific status codes declared in
ICModelStatusConstants
ICModelStatusConstants
,
org.eclipse.core.runtime.IStatus#ERROR
public CModelException(CoreException exception)
CoreException
.
Equivalent to
CModelException(exception,ICModelStatusConstants.CORE_EXCEPTION
.
exception
- the CoreException
Method Detail |
---|
public Throwable getException()
Throwable
that caused the failure.
Throwable
, or null
if the
direct case of the failure was at the C model layerpublic ICModelStatus getCModelStatus()
(ICModelStatus) getStatus()
.
public boolean doesNotExist()
ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST
.
This is a convenience method.
true
if this exception indicates that a C model
element does not existICModelStatus.doesNotExist()
,
ICModelStatusConstants.ELEMENT_DOES_NOT_EXIST
public String toString()
|
Eclipse CDT Pre-release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |