AROM-2_2_13

arom.kr.model
Class NoSuchEntityException

java.lang.Object
  |
  +--java.lang.Throwable
        |
        +--java.lang.Exception
              |
              +--java.lang.RuntimeException
                    |
                    +--arom.kr.model.NoSuchEntityException
All Implemented Interfaces:
Serializable

public class NoSuchEntityException
extends RuntimeException

Thrown to indicate that the parameter entity can not be found in the context of the executed method. For example, the following code generates a NoSuchEntityException if the slot aSlot is not defined for the class aClass.

 AMClass aClass = ... ;
 AMClass anotherClass = ... ;
 Slot aSlot = anotherClass.lookupSlot("x");
 SlotDescriptor descriptor = aSlot.getDescriptionFor(aClass); 
 

Author:
Christophe Bruley
See Also:
Serialized Form

Constructor Summary
NoSuchEntityException()
           
NoSuchEntityException(AMEntity entity)
           
NoSuchEntityException(AMEntity entity, String msg)
           
 
Method Summary
 AMEntity getEntity()
          Return the referenced entity that was not found in the context of the executed method
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NoSuchEntityException

public NoSuchEntityException()

NoSuchEntityException

public NoSuchEntityException(AMEntity entity)

NoSuchEntityException

public NoSuchEntityException(AMEntity entity,
                             String msg)
Method Detail

getEntity

public AMEntity getEntity()
Return the referenced entity that was not found in the context of the executed method

Returns:
the referenced entity

AROM-2_2_13