public class CModelException
extends CoreException
ICModelStatus,
ICModelStatusConstants| Constructor and Description |
|---|
CModelException(CoreException exception)
Creates a C model exception for the given
CoreException. |
CModelException(java.lang.Throwable e,
int code)
Creates a C model exception that wrappers the given
Throwable. |
| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.Throwable |
getException()
Returns the underlying
Throwable that caused the failure. |
java.lang.String |
toString()
Returns a printable representation of this exception suitable for debugging
purposes only.
|
public CModelException(java.lang.Throwable e,
int code)
Throwable.
The exception contains a C-specific status object with severity
IStatus.ERROR and the given status code.e - the Throwablecode - one of the C-specific status codes declared in
ICModelStatusConstantsICModelStatusConstants,
org.eclipse.core.runtime.IStatus#ERRORpublic CModelException(CoreException exception)
CoreException.
Equivalent to
CModelException(exception,ICModelStatusConstants.CORE_EXCEPTION.exception - the CoreExceptionpublic java.lang.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_EXISTpublic java.lang.String toString()
Copyright (c) IBM Corp. and others 2004, 2014. All Rights Reserved.