com.tirsen.angkor
Interface ErrorViewFactory

All Superinterfaces:
java.io.Serializable, ViewFactory

public interface ErrorViewFactory
extends ViewFactory

Implement this interface if you want to provide views that shows errors to the user.

Version:
$Revision: 1.2 $
Author:
Jon Tirs´n (tirsen@users.sourceforge.net)

Method Summary
 void addError(java.lang.Throwable error)
          Adds an error to be displayed by the view.
 void addError(java.lang.Throwable error, View associatedView)
          Add an error associated with a specific view.
 java.lang.Throwable[] getErrors()
          Gets the errors currently associated with this error-view.
 void resetErrors()
          Resets the errors associated with this error-view to no errors at all.
 
Methods inherited from interface com.tirsen.angkor.ViewFactory
getView
 

Method Detail

addError

public void addError(java.lang.Throwable error)
Adds an error to be displayed by the view.


addError

public void addError(java.lang.Throwable error,
                     View associatedView)
Add an error associated with a specific view. An error is associated with a view if it fails during the call to the View.parse(RenderContext) method or if it is the source of an event which fails during event processing.


getErrors

public java.lang.Throwable[] getErrors()
Gets the errors currently associated with this error-view.


resetErrors

public void resetErrors()
Resets the errors associated with this error-view to no errors at all.



Copyright © 2002-2002 . All Rights Reserved.