com.elasticpath.commons.exception
Class DuplicateNameException

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.DuplicateNameException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateNameException
extends EpSystemException

This exception is thrown when an attempt is made to insert an object when the given name already exists but must be unique.

See Also:
Serialized Form

Constructor Summary
DuplicateNameException(java.lang.String message)
          Creates a new object with the given message.
DuplicateNameException(java.lang.String message, java.lang.Throwable cause)
          Creates a new 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

DuplicateNameException

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

Parameters:
message - the reason

DuplicateNameException

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

Parameters:
message - the reason
cause - the Throwable that caused this exception