com.elasticpath.commons.exception
Class DuplicateKeyException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.elasticpath.commons.exception.EpSystemException
                  extended by com.elasticpath.commons.exception.DuplicateKeyException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateKeyException
extends EpSystemException

The exception for an attribute key that already exists.

See Also:
Serialized Form

Constructor Summary
DuplicateKeyException(java.lang.String message)
          Creates a new DuplicateKeyException object with the given message.
DuplicateKeyException(java.lang.String message, java.lang.Throwable cause)
          Creates a new DuplicateKeyException object using the given message and cause exception.
 
Method Summary
 
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
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DuplicateKeyException

public DuplicateKeyException(java.lang.String message)
Creates a new DuplicateKeyException object with the given message.

Parameters:
message - the reason for this DuplicateKeyException.

DuplicateKeyException

public DuplicateKeyException(java.lang.String message,
                             java.lang.Throwable cause)
Creates a new DuplicateKeyException object using the given message and cause exception.

Parameters:
message - the reason for this DuplicateKeyException.
cause - the Throwable that caused this DuplicateKeyException.