@Immutable public class PathNotFoundException extends RuntimeException
path
was not found. This exception does contain
the lowest ancestor of the path that was found to exist.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) |
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() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
public PathNotFoundException(Location location, Path lowestAncestorThatDoesExist)
location
- the location of the node that does not existlowestAncestorThatDoesExist
- the path of the lowest (closest) ancestor that does existpublic PathNotFoundException(Location location, Path lowestAncestorThatDoesExist, String message)
location
- the location of the node that does not existlowestAncestorThatDoesExist
- the path of the lowest (closest) ancestor that does existmessage
- public PathNotFoundException(Location location, Path lowestAncestorThatDoesExist, Throwable cause)
location
- the location of the node that does not existlowestAncestorThatDoesExist
- the path of the lowest (closest) ancestor that does existcause
- public PathNotFoundException(Location location, Path lowestAncestorThatDoesExist, String message, Throwable cause)
location
- the location of the node that does not existlowestAncestorThatDoesExist
- the path of the lowest (closest) ancestor that does existmessage
- cause
- public String getMessage()
getMessage
in class Throwable
public Location getLocation()
public Path getLowestAncestorThatDoesExist()
ancestor
of the non-existant location
.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.