public class FiberQueryException extends FiberException
ConfigQuery.
This class is the general class of exceptions produced by failed config tree queries.
| Modifier and Type | Class and Description |
|---|---|
static class |
FiberQueryException.MissingChild
Checked exception thrown when a query fails to find a child
with a given name from an ancestor node.
|
static class |
FiberQueryException.WrongType
Checked exception thrown when a query finds a node of
a different type than expected.
|
| Constructor and Description |
|---|
FiberQueryException(java.lang.String message,
ConfigTree invalidTree) |
FiberQueryException(java.lang.String message,
java.lang.Throwable cause,
ConfigTree invalidTree) |
| Modifier and Type | Method and Description |
|---|---|
ConfigTree |
getErrorParent()
Returns the last valid ancestor before which the error occurred.
|
public FiberQueryException(java.lang.String message,
ConfigTree invalidTree)
public FiberQueryException(java.lang.String message,
java.lang.Throwable cause,
ConfigTree invalidTree)
public ConfigTree getErrorParent()
The invalid tree may be the tree directly passed to the query, or it may be a descendant node.