org.jboss.dna.graph.property
Class PathNotFoundException
java.lang.Object
  
java.lang.Throwable
      
java.lang.Exception
          
java.lang.RuntimeException
              
org.jboss.dna.graph.property.PathNotFoundException
- All Implemented Interfaces: 
 - Serializable
 
@Immutable
public class PathNotFoundException
- extends RuntimeException
 
A runtime exception denoting that a node or property at a supplied path was not found. This exception does contain
 the lowest ancestor of the path that was found to exist.
- See Also:
 - Serialized Form
 
 
 
 
 
PathNotFoundException
public PathNotFoundException(Location location,
                             Path lowestAncestorThatDoesExist)
- Parameters:
 location - the location of the node that does not existlowestAncestorThatDoesExist - the path of the lowest (closest) ancestor that does exist
PathNotFoundException
public PathNotFoundException(Location location,
                             Path lowestAncestorThatDoesExist,
                             String message)
- Parameters:
 location - the location of the node that does not existlowestAncestorThatDoesExist - the path of the lowest (closest) ancestor that does existmessage - 
PathNotFoundException
public PathNotFoundException(Location location,
                             Path lowestAncestorThatDoesExist,
                             Throwable cause)
- Parameters:
 location - the location of the node that does not existlowestAncestorThatDoesExist - the path of the lowest (closest) ancestor that does existcause - 
PathNotFoundException
public PathNotFoundException(Location location,
                             Path lowestAncestorThatDoesExist,
                             String message,
                             Throwable cause)
- Parameters:
 location - the location of the node that does not existlowestAncestorThatDoesExist - the path of the lowest (closest) ancestor that does existmessage - cause - 
toString
public String toString()
- 
- Overrides:
 toString in class Throwable
 
 
 
getMessage
public String getMessage()
- 
- Overrides:
 getMessage in class Throwable
 
- See Also:
 Throwable.getMessage()
 
 
getLocation
public Location getLocation()
- Get the path that was not found
- Returns:
 - the path that was not found
 
 
 
getLowestAncestorThatDoesExist
public Path getLowestAncestorThatDoesExist()
- Get the lowest (closest) existing 
ancestor of the non-existant location.
- Returns:
 - the lowest ancestor that does exist
 
 
 
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.