org.apache.wiki.providers
Class RepositoryModifiedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.wiki.api.exceptions.WikiException
              extended by org.apache.wiki.api.exceptions.ProviderException
                  extended by org.apache.wiki.providers.RepositoryModifiedException
All Implemented Interfaces:
Serializable

public class RepositoryModifiedException
extends ProviderException

If the provider detects that someone has modified the repository externally, it should throw this exception.

Any provider throwing this exception should first clean up any references to the modified page it has, so that when we call this the next time, the page is handled as completely, and we don't get the same exception again.

Since:
2.1.25
See Also:
Serialized Form

Field Summary
protected  String m_page
           
 
Constructor Summary
RepositoryModifiedException(String msg, String pageName)
          Constructs the exception.
 
Method Summary
 String getPageName()
          Return the page name given in the constructor.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, 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
 

Field Detail

m_page

protected final String m_page
Constructor Detail

RepositoryModifiedException

public RepositoryModifiedException(String msg,
                                   String pageName)
Constructs the exception.

Parameters:
msg - The message
pageName - The name of the page which was modified
Method Detail

getPageName

public String getPageName()
Return the page name given in the constructor.

Returns:
The page name.


Copyright © {inceptionYear}-2014 The Apache Software Foundation. All rights reserved.