com.elasticpath.service
Class EpServiceException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AnotherImportJobRunningException, DuplicatePromoCodeException, EpEmptySearchCriteriaException, GroupExistException, IdentityServiceException, ImportJobExistException, ShippingRegionExistException, SkuOptionKeyExistException, TaxCodeExistException, TaxJurisdictionExistException, UserNameExistException, UserRoleNameExistException

public class EpServiceException
extends EpSystemException

The generic exception class for the com.elasticpath.service package.

See Also:
Serialized Form

Constructor Summary
EpServiceException(java.lang.String message)
          Creates a new EpServiceException object with the given message.
EpServiceException(java.lang.String message, java.lang.Throwable cause)
          Creates a new EpServiceException object using the given message and cause exception.
 
Method Summary
 java.lang.String getName()
          Returns the class not of the Exception.
 
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

EpServiceException

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

Parameters:
message - the reason for this EpServiceException.

EpServiceException

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

Parameters:
message - the reason for this EpServiceException.
cause - the Throwable that caused this EpServiceException.
Method Detail

getName

public java.lang.String getName()
Returns the class not of the Exception. Used to identify a specific exception on client side, i.e. in JavaScript when using Ajax to invoke service layer method.

Returns:
the exception name, i.e. com.elasticpath.service.EpServiceException, com.elasticpath.service.EmailExistException.