com.elasticpath.service.rules
Class DuplicatePromoCodeException

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.service.EpServiceException
                      extended by com.elasticpath.service.rules.DuplicatePromoCodeException
All Implemented Interfaces:
java.io.Serializable

public class DuplicatePromoCodeException
extends EpServiceException

The exception for promo code already exists.

See Also:
Serialized Form

Constructor Summary
DuplicatePromoCodeException(java.lang.String message)
          Creates a new DuplicatePromoCodeException object with the given message.
DuplicatePromoCodeException(java.lang.String message, java.lang.Throwable cause)
          Creates a new DuplicatePromoCodeException object using the given message and cause exception.
 
Method Summary
 
Methods inherited from class com.elasticpath.service.EpServiceException
getName
 
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

DuplicatePromoCodeException

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

Parameters:
message - the reason for this DuplicatePromoCodeException.

DuplicatePromoCodeException

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

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