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
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 |
NoSuchEntityException
public NoSuchEntityException()
NoSuchEntityException
public NoSuchEntityException(AMEntity entity)
NoSuchEntityException
public NoSuchEntityException(AMEntity entity,
String msg)
getEntity
public AMEntity getEntity()
- Return the referenced entity that was not found in the context of the executed
method
- Returns:
- the referenced entity