Package com.oracle.truffle.api.dsl
Class UnsupportedSpecializationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.truffle.api.dsl.UnsupportedSpecializationException
- All Implemented Interfaces:
Serializable
Thrown by the generated code of Truffle-DSL if no compatible Specialization could be found for
the provided values.
- Since:
- 0.8 or earlier
- See Also:
-
Constructor Summary
ConstructorDescriptionUnsupportedSpecializationException
(Node node, Node[] suppliedNodes, Object... suppliedValues) Constructs a newUnsupportedSpecializationException
. -
Method Summary
Modifier and TypeMethodDescriptiongetNode()
Returns theNode
that caused the thisUnsupportedSpecializationException
.Node[]
Returns the children of theNode
returned bygetNode()
which produced the values returned bygetSuppliedValues()
.Object[]
Returns the dynamic values that were supplied to the node.The array returned bygetSuppliedNodes()
has the same length as the array returned bygetSuppliedValues()
.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
UnsupportedSpecializationException
public UnsupportedSpecializationException(Node node, Node[] suppliedNodes, Object... suppliedValues) Constructs a newUnsupportedSpecializationException
.- Parameters:
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 ofsuppliedValues
, 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 ofuncached
andinlined
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 benull
.- Since:
- 0.8 or earlier
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
- Since:
- 0.8 or earlier
-
getNode
Returns theNode
that caused the thisUnsupportedSpecializationException
.- Since:
- 0.8 or earlier
-
getSuppliedNodes
Returns the children of theNode
returned bygetNode()
which produced the values returned bygetSuppliedValues()
. The array returned bygetSuppliedNodes()
has the same length as the array returned bygetSuppliedValues()
. Never returns null.- Since:
- 0.8 or earlier
-
getSuppliedValues
Returns the dynamic values that were supplied to the node.The array returned bygetSuppliedNodes()
has the same length as the array returned bygetSuppliedValues()
. Never returns null.- Since:
- 0.8 or earlier
-