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
Exception thrown when a
service
method fails.- Author:
- jfischer
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ServiceException
(String message) ServiceException
(String message, Throwable cause) ServiceException
(Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionboolean
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.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ServiceException
protected ServiceException() -
ServiceException
-
ServiceException
-
ServiceException
-
-
Method Details
-
containsCause
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.
-