Class ExceptionReport
- java.lang.Object
-
- org.apache.tapestry5.corelib.base.AbstractInternalPage
-
- org.apache.tapestry5.corelib.pages.ExceptionReport
-
- All Implemented Interfaces:
ExceptionReporter
@UnknownActivationContextCheck(false) @ContentType("text/html") @Import(stylesheet="ExceptionReport.css") public class ExceptionReport extends AbstractInternalPage implements ExceptionReporter
Responsible for reporting runtime exceptions. This page is quite verbose and is usually overridden in a production application. WhenTapestryHttpSymbolConstants.PRODUCTION_MODE
is "true", it is very abbreviated.- See Also:
ExceptionDisplay
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExceptionReport.ActionLink
A link the user may press to perform an action (e.g., "Reload page").class
ExceptionReport.ThreadInfo
-
Field Summary
-
Fields inherited from class org.apache.tapestry5.corelib.base.AbstractInternalPage
request
-
-
Constructor Summary
Constructors Constructor Description ExceptionReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<ExceptionReport.ActionLink>
getActionLinks()
java.lang.Object
getAttributeValue()
java.lang.String[]
getComplexPropertyValue()
boolean
getHasSession()
java.lang.String
getPropertyValue()
Session
getSession()
java.util.List<java.lang.String>
getSystemProperties()
Returns a sorted list of system property names.java.util.List<ExceptionReport.ThreadInfo>
getThreads()
boolean
isComplexProperty()
boolean
isShowActions()
Returns true for normal, non-XHR requests.boolean
isShowReload()
Returns true in development mode; enables the "with reload" actions.void
reportException(java.lang.Throwable exception)
Used to communicate to the page what exception is to be reported.
-
-
-
Constructor Detail
-
ExceptionReport
public ExceptionReport()
-
-
Method Detail
-
isShowActions
public boolean isShowActions()
Returns true for normal, non-XHR requests. Links (to the failure page, or to root page) are only presented if showActions is true.
-
isShowReload
public boolean isShowReload()
Returns true in development mode; enables the "with reload" actions.
-
reportException
public void reportException(java.lang.Throwable exception)
Description copied from interface:ExceptionReporter
Used to communicate to the page what exception is to be reported.- Specified by:
reportException
in interfaceExceptionReporter
- Parameters:
exception
- runtime exception thrown during processing of the request
-
getActionLinks
public java.util.List<ExceptionReport.ActionLink> getActionLinks()
-
getHasSession
public boolean getHasSession()
-
getSession
public Session getSession()
-
getAttributeValue
public java.lang.Object getAttributeValue()
-
getSystemProperties
public java.util.List<java.lang.String> getSystemProperties()
Returns a sorted list of system property names.
-
getPropertyValue
public java.lang.String getPropertyValue()
-
isComplexProperty
public boolean isComplexProperty()
-
getComplexPropertyValue
public java.lang.String[] getComplexPropertyValue()
-
getThreads
public java.util.List<ExceptionReport.ThreadInfo> getThreads()
-
-