Package org.cyclos.model
Class EntityNotFoundException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.cyclos.model.CyclosException
-
- org.cyclos.model.FrameworkException
-
- org.cyclos.model.DataAccessException
-
- org.cyclos.model.EntityNotFoundException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
LocateUserException
public class EntityNotFoundException extends DataAccessException
Exception thrown when an expected entity was not found- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntityNotFoundException()EntityNotFoundException(Class<?> entityType)EntityNotFoundException(Class<?> entityType, Long id)EntityNotFoundException(Class<?> entityType, String key)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEntityType()LonggetId()StringgetKey()StringgetMessage()Don't delete this method.voidsetEntityType(String entityType)voidsetId(Long id)voidsetKey(String key)-
Methods inherited from class org.cyclos.model.CyclosException
shouldGenerateLog
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
EntityNotFoundException
public EntityNotFoundException()
-
EntityNotFoundException
public EntityNotFoundException(Class<?> entityType)
-
-
Method Detail
-
getEntityType
public String getEntityType()
-
getId
public Long getId()
-
getKey
public String getKey()
-
getMessage
public String getMessage()
Description copied from class:CyclosExceptionDon't delete this method. This is taken into account by the mobile generator- Overrides:
getMessagein classCyclosException- See Also:
Throwable.getMessage()
-
setEntityType
public void setEntityType(String entityType)
-
setId
public void setId(Long id)
-
setKey
public void setKey(String key)
-
-