public class PageNotFoundException extends RuntimeException
This is an unchecked exception used to identify that
a Clay
template
could not be found. The exception captures the requested
resource to be compared to the view root. This is done
by the ClayViewHandler
in the renderView
method. If the missing
template and the viewId
are the same, a
HTTP 404 status code is sent to the client. If the
missing template resource is nested in the page composition,
the standard 500 status code will be returned.
Constructor and Description |
---|
PageNotFoundException(String message,
String resource)
Overloaded constructor requires an error message
and the missing resource.
|
Modifier and Type | Method and Description |
---|---|
String |
getResource()
Returns the missing resource.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public String getResource()
Returns the missing resource.
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.