public class ResourceNotFoundException extends SlingException
The advantage of using this exception over the
HttpServletResponse.sendError
methods is that the request can
be aborted immediately all the way up in the call stack and that in addition
to the status code and an optional message a Throwable
may be
supplied providing more information.
Constructor and Description |
---|
ResourceNotFoundException(String message) |
ResourceNotFoundException(String resource,
String message) |
ResourceNotFoundException(String resource,
String message,
Throwable cause) |
ResourceNotFoundException(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
String |
getResource() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Copyright © 2017 The Apache Software Foundation. All rights reserved.