WebObjects 5.1

com.webobjects.directtoweb
Interface ErrorPageInterface

All Known Implementing Classes:
D2WErrorPage

public interface ErrorPageInterface

This interface is implemented by pages returned by the D2W method errorPageForEntityNamed. Use methods defined in this interface to initialize a newly created error page.


Method Summary
 void setMessage(String errorMessage)
          Sets the message displayed by the error page.
 void setNextPage(WOComponent nextPage)
          Sets page to display when the user clicks 'Return' in the error page.
 

Method Detail

setMessage

public void setMessage(String errorMessage)
Sets the message displayed by the error page.
Parameters:
errorMessage - text displayed in error page

setNextPage

public void setNextPage(WOComponent nextPage)
Sets page to display when the user clicks 'Return' in the error page.
Parameters:
nextPage - page returned when 'Return' button is clicked in the page

Last updated Thu Jan 10 18:10:21 PST 2002.

Copyright © 2002 Apple Computer, Inc.