org.modeshape.jcr.cache
Class DocumentNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.modeshape.jcr.cache.DocumentNotFoundException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- LockFailureException, NodeNotFoundException, PathNotFoundException
public class DocumentNotFoundException
- extends RuntimeException
An exception signalling that a node does not exist.
- See Also:
- Serialized Form
DocumentNotFoundException
public DocumentNotFoundException(String key)
- Parameters:
key
- the key for the node that does not exist
DocumentNotFoundException
public DocumentNotFoundException(String key,
String message)
- Parameters:
key
- the key for the node that does not existmessage
- the message
DocumentNotFoundException
public DocumentNotFoundException(String key,
Throwable cause)
- Parameters:
key
- the key for the node that does not existcause
- the cause of this exception
DocumentNotFoundException
public DocumentNotFoundException(String key,
String message,
Throwable cause)
- Parameters:
key
- the key for the node that does not existmessage
- the messagecause
- the cause of this exception
toString
public String toString()
- Overrides:
toString
in class Throwable
getKey
public String getKey()
- Get the document key that was not found
- Returns:
- the key for the document that was not found
Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.