public final class UnsupportedSpecializationException extends RuntimeException
Constructor and Description |
---|
UnsupportedSpecializationException(Node node,
Node[] suppliedNodes,
Object... suppliedValues)
Constructs a new
UnsupportedSpecializationException . |
Modifier and Type | Method and Description |
---|---|
String |
getMessage() |
Node |
getNode()
Returns the
Node that caused the this UnsupportedSpecializationException . |
Node[] |
getSuppliedNodes()
Returns the children of the
Node returned by UnsupportedSpecializationException.getNode() which produced the
values returned by UnsupportedSpecializationException.getSuppliedValues() . |
Object[] |
getSuppliedValues()
Returns the dynamic values that were supplied to the node.The array returned by
UnsupportedSpecializationException.getSuppliedNodes() has the same length as the array returned by
UnsupportedSpecializationException.getSuppliedValues() . |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UnsupportedSpecializationException(Node node, Node[] suppliedNodes, Object... suppliedValues)
UnsupportedSpecializationException
.node
- The node that does not support the provided values in any of its specializations.
May be null.suppliedNodes
- The evaluated nodes that supplied the values. The array must much the
length of suppliedValues
, and may contain null elements for values not not
provided by a child node but through an execute method parameter. If the array
would consist of only nulls, as in the case of uncached
and inlined
nodes, null
may be provided instead and
will be treated as an array of nulls of the expected length.suppliedValues
- The values for which no compatible specialization could be found. The
array reference must not be null
.public String getMessage()
getMessage
in class Throwable
public Node getNode()
Node
that caused the this UnsupportedSpecializationException
.public Node[] getSuppliedNodes()
Node
returned by UnsupportedSpecializationException.getNode()
which produced the
values returned by UnsupportedSpecializationException.getSuppliedValues()
. The array returned by
UnsupportedSpecializationException.getSuppliedNodes()
has the same length as the array returned by
UnsupportedSpecializationException.getSuppliedValues()
. Never returns null.public Object[] getSuppliedValues()
UnsupportedSpecializationException.getSuppliedNodes()
has the same length as the array returned by
UnsupportedSpecializationException.getSuppliedValues()
. Never returns null.