Class SlingException

    • 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
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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 text
        cause - the root cause