public class TranslatorException extends java.lang.Exception implements IIdentifiable
| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.emf.ecore.EObject |
cause |
private org.eclipse.emf.ecore.EStructuralFeature |
causingFeature |
private int |
code |
static int |
CONSUME |
static int |
INTERNAL |
| Constructor and Description |
|---|
TranslatorException(IIdentifiable ex,
org.eclipse.emf.ecore.EObject cause,
org.eclipse.emf.ecore.EStructuralFeature causingFeature)
Creates a translator exception upon an IVML exception.
|
TranslatorException(java.lang.String message,
org.eclipse.emf.ecore.EObject cause,
org.eclipse.emf.ecore.EStructuralFeature causingFeature,
int code)
Creates a translator exception upon a given message string.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
consume()
Returns whether this exception shall be consumed and not passed to the
user.
|
org.eclipse.emf.ecore.EStructuralFeature |
getCausingFeature()
Returns the the specific language feature within
getECause()
which caused the exception. |
int |
getCode()
Returns a numerical code representing the problem.
|
org.eclipse.emf.ecore.EObject |
getECause()
Returns the Ecore language model element for which the exception was
caused.
|
int |
getId()
Returns a numerical identifier representing the
actual
message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetMessagepublic static final int CONSUME
public static final int INTERNAL
private org.eclipse.emf.ecore.EObject cause
private org.eclipse.emf.ecore.EStructuralFeature causingFeature
private int code
public TranslatorException(IIdentifiable ex, org.eclipse.emf.ecore.EObject cause, org.eclipse.emf.ecore.EStructuralFeature causingFeature)
ex - the causing exceptioncause - the Ecore language model element for which the exception was
causedcausingFeature - the specific language feature within cause which
caused the exceptionpublic TranslatorException(java.lang.String message,
org.eclipse.emf.ecore.EObject cause,
org.eclipse.emf.ecore.EStructuralFeature causingFeature,
int code)
message - the message stringcause - the Ecore language model element for which the exception was
causedcausingFeature - the specific language feature within cause which
caused the exceptioncode - a numerical code representing the problempublic org.eclipse.emf.ecore.EObject getECause()
public org.eclipse.emf.ecore.EStructuralFeature getCausingFeature()
getECause()
which caused the exception.public int getCode()
public int getId()
IIdentifiablemessage. This identifier is used
for asserting exceptions in tests.getId in interface IIdentifiablepublic boolean consume()
true if it shall be consumed, false
elseCopyright © 2009 - 2018 SSE. All Rights Reserved.