br.com.arsmachina.example.web.pages
Class Error

java.lang.Object
  extended by br.com.arsmachina.example.web.pages.Error
All Implemented Interfaces:
ExceptionReporter

public class Error
extends Object
implements ExceptionReporter

Error page. This page redirects to the index page when accessed directly, in other words, when no error ocurred.

Author:
Thiago H. de Paula Figueiredo

Constructor Summary
Error()
           
 
Method Summary
 Throwable getException()
          Returns the value of the exception property.
 boolean isProductionMode()
          Returns the value of the productionMode property.
 Object onActivate()
          Redirects to the index page when acessed directly, not because of an error.
 void reportException(Throwable exception)
          Does nothing, as the exception is already logged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Error

public Error()
Method Detail

isProductionMode

public boolean isProductionMode()
Returns the value of the productionMode property.

Returns:
a boolean.

onActivate

public Object onActivate()
Redirects to the index page when acessed directly, not because of an error.

Returns:
a String.

reportException

public void reportException(Throwable exception)
Does nothing, as the exception is already logged.

Specified by:
reportException in interface ExceptionReporter
See Also:
ExceptionReporter.reportException(java.lang.Throwable)

getException

public Throwable getException()
Returns the value of the exception property.

Returns:
a Throwable.


Copyright © 2008-2009 Thiago H. de Paula Figueiredo. All Rights Reserved.