net.dpml.lang
Class DuplicateKeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by net.dpml.lang.DuplicateKeyException
All Implemented Interfaces:
Serializable

public class DuplicateKeyException
extends Exception

Exception to indicate an error arrising from the use of a duplicate key.

Version:
2.1.0
Author:
Digital Product Management Library
See Also:
Serialized Form

Constructor Summary
DuplicateKeyException(String key)
          Construct a new DuplicateKeyException instance.
 
Method Summary
 String getKey()
          Return the key.
 
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

DuplicateKeyException

public DuplicateKeyException(String key)
Construct a new DuplicateKeyException instance.

Parameters:
key - the duplicate key
Method Detail

getKey

public String getKey()
Return the key.

Returns:
the key