Class ServiceException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.broadleafcommerce.common.exception.ServiceException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CleanStringException, SecurityServiceException, ValidationException

public class ServiceException extends Exception
Exception thrown when a service method fails.
Author:
jfischer
See Also:
  • Constructor Details

    • ServiceException

      protected ServiceException()
    • ServiceException

      public ServiceException(String message, Throwable cause)
    • ServiceException

      public ServiceException(String message)
    • ServiceException

      public ServiceException(Throwable cause)
  • Method Details

    • containsCause

      public boolean containsCause(Class<? extends Throwable> clazz)
      Checks to see if any of the causes of the chain of exceptions that led to this ServiceException are an instance of the given class.
      Parameters:
      clazz -
      Returns:
      whether or not this exception's causes includes the given class.