Package org.apache.sling.api
Class SlingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.sling.api.SlingException
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
CqSecurityException
,ImportException
,InvalidServiceFilterSyntaxException
,NoAuthenticationHandlerException
,NoAuthenticationHandlerException
,NoAuthenticationHandlerException
,QuerySyntaxException
,RecursionTooDeepException
,ResourceNotFoundException
,ScriptEvaluationException
,SlingIOException
,SlingRepositoryException
,SlingServletException
,TooManyCallsException
public class SlingException extends java.lang.RuntimeException
TheSlingException
is the base exception used throughout the Sling API. This exception should only be thrown if there is no more specific exception defined in the Sling API for the cause and if a cause can be supplied. Otherwise the more specific exception must be used.The
SlingException
is aRuntimeException
because this exception is not intended to be caught by client code. Rather this exception (and extensions thereof) should be passed through up to the actual Sling error and exception handling.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SlingException(java.lang.String text, java.lang.Throwable cause)
Constructs a new Sling exception when the Servlet needs to do the following: throw an exception include the "root cause" exception include a description message
-
-
-
Constructor Detail
-
SlingException
public SlingException(java.lang.String text, java.lang.Throwable cause)
Constructs a new Sling exception when the Servlet needs to do the following:- throw an exception
- include the "root cause" exception
- include a description message
- Parameters:
text
- the exception textcause
- the root cause
-
-