repo1.maven.org$maven2@org.apache.sling$org.apache.sling.api@2.0.4-incubator
repo1.maven.org$maven2@org.apache.sling$org.apache.sling.api@2.0.4-incubator@org$apache$sling$api$SlingException.java
file
oh
o
[]
package org.apache.sling.api;
The
SlingException 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 a RuntimeException
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.
Serial Version ID for pre Java2 RMI
Constructs a new Sling exception.
Constructs a new Sling exception with the given text. The Sling framework
may use the text to write it to a log.
- Parameters:
text the exception text
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
Constructs a new Sling exception when the Servlet needs to throw an
exception. The exception's message is based on the localized message of
the underlying exception.
- Parameters:
cause the root cause