|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.Component
org.apache.wicket.MarkupContainer
org.apache.wicket.Page
org.apache.wicket.markup.html.WebPage
org.apache.wicket.markup.html.pages.ExceptionErrorPage
public class ExceptionErrorPage
Shows a runtime exception on a nice HTML page.
Field Summary |
---|
Fields inherited from class org.apache.wicket.Component |
---|
ENABLE, FLAG_INITIALIZED, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PATH_SEPARATOR, RENDER |
Fields inherited from interface org.apache.wicket.IRedirectListener |
---|
INTERFACE |
Constructor Summary | |
---|---|
ExceptionErrorPage(Throwable throwable,
Page page)
Constructor. |
Method Summary | |
---|---|
protected void |
configureResponse()
Set-up response with appropriate content type, locale and encoding. |
String |
getErrorMessage(Throwable throwable)
Converts a Throwable to a string. |
String |
getStackTrace(Throwable throwable)
Converts a Throwable to a string. |
Throwable |
getThrowable()
Get access to the exception |
boolean |
isErrorPage()
Override this method and return true if your page is used to display Wicket errors. |
boolean |
isVersioned()
|
Methods inherited from class org.apache.wicket.markup.html.WebPage |
---|
getMarkupType, homePageLink, onAfterRender, setHeaders |
Methods inherited from class org.apache.wicket.MarkupContainer |
---|
add, addOrReplace, autoAdd, contains, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, hasAssociatedMarkup, internalAdd, iterator, iterator, onComponentTagBody, onMarkupAttached, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, visitChildren, visitChildren |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.wicket.request.component.IRequestableComponent |
---|
canCallListenerInterface, detach, get, getBehaviorById, getBehaviorId, getPage, getPageRelativePath |
Methods inherited from interface org.apache.wicket.page.IManageablePage |
---|
detach |
Constructor Detail |
---|
public ExceptionErrorPage(Throwable throwable, Page page)
throwable
- The exception to showpage
- The page being rendered when the exception was thrownMethod Detail |
---|
public String getErrorMessage(Throwable throwable)
throwable
- The throwable
public String getStackTrace(Throwable throwable)
throwable
- The throwable
protected void configureResponse()
Page
Note: Prior to Wicket 1.1 the output encoding was determined by the page's markup encoding. Because this caused uncertainties about the /request/ encoding, it has been changed in favor of the new, much safer, approach. Please see the Wiki for more details.
configureResponse
in class WebPage
WebPage.configureResponse()
public Throwable getThrowable()
public boolean isErrorPage()
Page
isErrorPage
in class Page
Page.isErrorPage()
public boolean isVersioned()
isVersioned
in class Component
Component.isVersioned()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |