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(java.lang.String message) |
ResourceNotFoundException(java.lang.String resource,
java.lang.String message) |
ResourceNotFoundException(java.lang.String resource,
java.lang.String message,
java.lang.Throwable cause) |
ResourceNotFoundException(java.lang.String message,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getResource() |
public ResourceNotFoundException(java.lang.String message)
public ResourceNotFoundException(java.lang.String resource, java.lang.String message)
public ResourceNotFoundException(java.lang.String message, java.lang.Throwable cause)
public ResourceNotFoundException(java.lang.String resource, java.lang.String message, java.lang.Throwable cause)
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"