public class SlingException extends RuntimeException
SlingExceptionis 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.
SlingException is a
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.
|Constructor and Description|
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
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
"Copyright © 2010 - 2016 Adobe Systems Incorporated. All Rights Reserved"