Class InteropException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oracle.truffle.api.interop.InteropException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArityException, InvalidArrayIndexException, InvalidBufferOffsetException, StopIterationException, UnknownIdentifierException, UnknownKeyException, UnsupportedMessageException, UnsupportedTypeException

public abstract class InteropException extends Exception
Common super class for exceptions that can occur when sending interop messages. This super class is used to catch any kind of these exceptions.
Since:
0.11
See Also:
  • Method Details

    • getCause

      public final Throwable getCause()
      Returns the cause of an interop exception.
      Overrides:
      getCause in class Throwable
      Since:
      20.2
    • initCause

      @Deprecated(since="20.2") public final Throwable initCause(Throwable cause)
      Deprecated.
      Do no longer use the cause will be initialized finally.
      Initializes the casue for an interop exception. Will no longer be supported as of 20.3. Pass in the cause using the interop constructors instead.
      Overrides:
      initCause in class Throwable
      Since:
      20.2
    • fillInStackTrace

      public final Throwable fillInStackTrace()
      No stack trace for interop exceptions.
      Overrides:
      fillInStackTrace in class Throwable
      Since:
      20.2