net.smartlab.web
Class UndefinedKeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.smartlab.web.DAOException
              extended by net.smartlab.web.UndefinedKeyException
All Implemented Interfaces:
java.io.Serializable

public class UndefinedKeyException
extends DAOException

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.

Author:
rlogiacco
See Also:
Serialized Form

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

UndefinedKeyException

public 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.

Parameters:
key - the key not found in the repository.
type - the class of the key not found in the repository.
cause - the originating exception.

UndefinedKeyException

public UndefinedKeyException(java.io.Serializable key,
                             java.lang.Class type)
Constructs a new instance with the key and type not found in the repository.

Parameters:
key - the key not found in the repository.
type - the class of the key not found in the repository.
Method Detail

getKey

public java.io.Serializable getKey()
Returns the key.

Returns:
the key.

getType

public java.lang.Class getType()
Returns the type.

Returns:
the type.


Copyright © 2004-2009 The SmartWeb Team. All Rights Reserved.