org.modeshape.jcr.value

## Class PathNotFoundException

- java.lang.Object
- - java.lang.Throwable
  - - java.lang.Exception
    - - java.lang.RuntimeException
      - - org.modeshape.jcr.value.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

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `PathNotFoundException(Location location, Path lowestAncestorThatDoesExist)`
    `PathNotFoundException(Location location, Path lowestAncestorThatDoesExist, String message)`
    `PathNotFoundException(Location location, Path lowestAncestorThatDoesExist, String message, Throwable cause)`
    `PathNotFoundException(Location location, Path lowestAncestorThatDoesExist, Throwable cause)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `Location` | `getLocation()` Get the path that was not found
    `Path` | `getLowestAncestorThatDoesExist()` Get the lowest (closest) existing `ancestor` of the `non-existant location`.
    `String` | `getMessage()`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Throwable

      `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### PathNotFoundException

          public PathNotFoundException(Location location,
                               Path lowestAncestorThatDoesExist)

      Parameters:
        `location` - the location of the node that does not exist
        `lowestAncestorThatDoesExist` - 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 exist
        `lowestAncestorThatDoesExist` - the path of the lowest (closest) ancestor that does exist
        `message` -

    - #### PathNotFoundException

          public PathNotFoundException(Location location,
                               Path lowestAncestorThatDoesExist,
                               Throwable cause)

      Parameters:
        `location` - the location of the node that does not exist
        `lowestAncestorThatDoesExist` - the path of the lowest (closest) ancestor that does exist
        `cause` -

    - #### PathNotFoundException

          public PathNotFoundException(Location location,
                               Path lowestAncestorThatDoesExist,
                               String message,
                               Throwable cause)

      Parameters:
        `location` - the location of the node that does not exist
        `lowestAncestorThatDoesExist` - the path of the lowest (closest) ancestor that does exist
        `message` -
        `cause` -

  - ### Method Detail

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Throwable`

    - #### getMessage

          public String getMessage()

      Overrides:
        `getMessage` in class `Throwable`

    - #### 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-2014 JBoss, a division of Red Hat. All Rights Reserved.