Daisy Open Source CMS

org.outerj.daisy.repository
Class DocumentNotFoundException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.outerj.daisy.repository.RepositoryException
              extended by org.outerj.daisy.repository.DocumentNotFoundException
All Implemented Interfaces:
Serializable, LocalizedException

public class DocumentNotFoundException
extends RepositoryException
implements LocalizedException

See Also:
Serialized Form

Constructor Summary
DocumentNotFoundException(Map params)
           
DocumentNotFoundException(String id)
           
DocumentNotFoundException(String id, Throwable cause)
           
 
Method Summary
 String getMessage()
           
 String getMessage(Locale locale)
           
 Map getState()
          Exceptions which can externalize their state as a map containing string-string pairs can override this method to do so.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentNotFoundException

public DocumentNotFoundException(String id)

DocumentNotFoundException

public DocumentNotFoundException(String id,
                                 Throwable cause)

DocumentNotFoundException

public DocumentNotFoundException(Map params)
Method Detail

getState

public Map getState()
Description copied from class: RepositoryException
Exceptions which can externalize their state as a map containing string-string pairs can override this method to do so. In that case, they should also have a constructor taking a Map as argument allowing reconstruction of the exception.

This is used to reconstruct server-side exceptions in the repository client.

Overrides:
getState in class RepositoryException

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable

getMessage

public String getMessage(Locale locale)
Specified by:
getMessage in interface LocalizedException

Daisy Open Source CMS