org.tonjac.mini
Class DefaultErrorData

java.lang.Object
  extended by org.tonjac.mini.DefaultErrorData
All Implemented Interfaces:
DataService

public class DefaultErrorData
extends java.lang.Object
implements DataService

Default error data service. Can be used in your .mini file as a error data provider. Sets the fields "Error" and "Code" with the latest error message and error code.

Author:
Toni Thomsson

Constructor Summary
DefaultErrorData()
           
 
Method Summary
 DataServiceReply execute(Session session, java.util.Properties args)
          Called by Mini when a data is needed to render a Error page
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultErrorData

public DefaultErrorData()
Method Detail

execute

public DataServiceReply execute(Session session,
                                java.util.Properties args)
                         throws java.lang.Exception
Called by Mini when a data is needed to render a Error page

Specified by:
execute in interface DataService
Parameters:
session - Session
args - CGI-parameters
Returns:
Data reply with error message and error code
Throws:
java.lang.Exception