Class UnsupportedSpecializationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.truffle.api.dsl.UnsupportedSpecializationException
All Implemented Interfaces:
Serializable

public final class UnsupportedSpecializationException extends RuntimeException
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 Details

    • UnsupportedSpecializationException

      public UnsupportedSpecializationException(Node node, Node[] suppliedNodes, Object... suppliedValues)
      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 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.
      Since:
      0.8 or earlier
  • Method Details