Package com.day.cq.commons
Class SlingRepositoryException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.sling.api.SlingException
-
- com.day.cq.commons.SlingRepositoryException
-
- All Implemented Interfaces:
Serializable
public class SlingRepositoryException extends SlingException
TheSlingRepositoryException
is a runtime exception wrapper for theRepositoryException
. This exception is used to catch anRepositoryException
and forward it as a runtime exception to be handled at the outermost level.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlingRepositoryException(String text, RepositoryException cause)
Constructs a new sling repository exceptionSlingRepositoryException(RepositoryException cause)
Constructs a new sling repository exception
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
SlingRepositoryException
public SlingRepositoryException(RepositoryException cause)
Constructs a new sling repository exception- Parameters:
cause
- the repository exception
-
SlingRepositoryException
public SlingRepositoryException(String text, RepositoryException cause)
Constructs a new sling repository exception- Parameters:
text
- the messagecause
- the repository exception
-
-