|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception net.smartlab.web.DAOException net.smartlab.web.UndefinedKeyException
public class UndefinedKeyException
An UndefinedKeyException is thrown whenever an application tries to retrieve from a persistent storage an entity using the unique identifier, also known as primary key or simply key, and the requested identifing value is not present in the storage system.
Constructor Summary | |
---|---|
UndefinedKeyException(java.io.Serializable key,
java.lang.Class type)
Constructs a new instance with the key and type not found in the repository. |
|
UndefinedKeyException(java.io.Serializable key,
java.lang.Class type,
java.lang.Throwable cause)
Constructs a new instance with the key and type not found in the repository and originating exception. |
Method Summary | |
---|---|
java.io.Serializable |
getKey()
Returns the key. |
java.lang.Class |
getType()
Returns the type. |
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UndefinedKeyException(java.io.Serializable key, java.lang.Class type, java.lang.Throwable cause)
key
- the key not found in the repository.type
- the class of the key not found in the repository.cause
- the originating exception.public UndefinedKeyException(java.io.Serializable key, java.lang.Class type)
key
- the key not found in the repository.type
- the class of the key not found in the repository.Method Detail |
---|
public java.io.Serializable getKey()
public java.lang.Class getType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |