|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.shale.clay.config.beans.PageNotFoundException
public class PageNotFoundException
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 Summary | |
|---|---|
PageNotFoundException(String message,
String resource)
Overloaded constructor requires an error message and the missing resource. |
|
| Method Summary | |
|---|---|
String |
getResource()
Returns the missing resource. |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PageNotFoundException(String message,
String resource)
Overloaded constructor requires an error message and the missing resource.
message - error messageresource - missing resource| Method Detail |
|---|
public String getResource()
Returns the missing resource.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||