org.apache.tapestry
Class StaleLinkException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.tapestry.ApplicationRuntimeException
                  extended by org.apache.tapestry.StaleLinkException
All Implemented Interfaces:
Serializable, ILocatable

public class StaleLinkException
extends ApplicationRuntimeException

Exception thrown by an IEngineService when it discovers that the an action link was for an out-of-date version of the page.

The application should redirect to the StaleLink page.

Version:
$Id: StaleLinkException.java 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship
See Also:
Serialized Form

Constructor Summary
StaleLinkException()
           
StaleLinkException(IComponent component, String targetActionId, String targetIdPath)
          Constructor used when the action id is found, but the target id path did not match the actual id path.
StaleLinkException(IPage page, String targetActionId, String targetIdPath)
          Constructor used when the target action id is not found.
StaleLinkException(String message, IComponent component)
           
 
Method Summary
 IPage getPage()
          Returns the page referenced by the service URL, if known, or null otherwise.
 String getPageName()
           
 String getTargetActionId()
           
 String getTargetIdPath()
           
 
Methods inherited from class org.apache.tapestry.ApplicationRuntimeException
getCause, getComponent, getLocation
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StaleLinkException

public StaleLinkException()

StaleLinkException

public StaleLinkException(IComponent component,
                          String targetActionId,
                          String targetIdPath)
Constructor used when the action id is found, but the target id path did not match the actual id path.


StaleLinkException

public StaleLinkException(IPage page,
                          String targetActionId,
                          String targetIdPath)
Constructor used when the target action id is not found.


StaleLinkException

public StaleLinkException(String message,
                          IComponent component)
Method Detail

getPageName

public String getPageName()

getPage

public IPage getPage()
Returns the page referenced by the service URL, if known, or null otherwise.


getTargetActionId

public String getTargetActionId()

getTargetIdPath

public String getTargetIdPath()