de.cau.cs.kieler.core
Class KielerModelException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by de.cau.cs.kieler.core.KielerModelException
Direct Known Subclasses:
DiagnosticException

public class KielerModelException
extends Exception

An Exception that indicates problems with certain model elements. It carries a reference to an arbitrary object that is supposed to be the causing model part.

Rating proposed yellow
(2010-01-19) proposed by haf

Constructor Summary
KielerModelException(String message, Object thecausingModelObject)
           
KielerModelException(String message, Object thecausingModelObject, Exception cause)
           
 
Method Summary
 Object getModelObject()
           
 
Methods inherited from class java.lang.Throwable
getMessage, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KielerModelException

public KielerModelException(String message,
                            Object thecausingModelObject)
Parameters:
message - exception message
thecausingModelObject - the model object that has caused the exception. Likely an EObject, if the metamodel is EMF.

KielerModelException

public KielerModelException(String message,
                            Object thecausingModelObject,
                            Exception cause)
Parameters:
message - exception message
thecausingModelObject - the model object that has caused the exception. Likely an EObject, if the metamodel is EMF.
cause - Causing Exception
Method Detail

getModelObject

public Object getModelObject()
Returns:
the model object that has caused this Exception. Likely to be an EMF EObject if the used metamodeling framework is EMF.