Elide GraalVM25.6.0-elide.4
All types
Versions and modules

UnsupportedMessageException

Javaexceptionin com.oracle.truffle.api.interopsince 0.11

public final class UnsupportedMessageException extends InteropException
Inheritance
  1. Object
  2. Throwable
  3. Exception
  4. InteropException
  5. UnsupportedMessageException

An exception thrown if a TruffleObject does not support a interop message. If this exception is thrown then the receiver does not support the message at all and it is not supported for any arguments given to the message.

Members shown

Methods3 + 2 inherited

String getMessage()Described in getMessage().

getMessage

since 19.0
public String getMessage()

Described in getMessage().

Returns

String
No description.
static UnsupportedMessageException create()

create

staticsince 19.0
public static UnsupportedMessageException create()

Creates an UnsupportedMessageException to indicate that an interop message is not supported.

This method is designed to be used in compiled code paths.

Returns

static UnsupportedMessageException create(Throwable)

create

staticsince 20.2
public static UnsupportedMessageException create(Throwable cause)

Creates an UnsupportedMessageException to indicate that an interop message is not supported.

In addition a cause may be provided. The cause should only be set if the guest language code caused this problem. An example for this is a language specific proxy mechanism that invokes guest language code to describe an object. If the guest language code fails to execute and this interop exception is a valid interpretation of the error, then the error should be provided as cause. The cause can then be used by the source language as new exception cause if the InteropException is translated to a source language error. If the InteropException is discarded, then the cause will most likely get discarded by the source language as well. Note that the cause must be of type AbstractTruffleException otherwise an IllegalArgumentException is thrown.

This method is designed to be used in compiled code paths.

Parameters

causeThrowable
the guest language exception that caused the error.

Returns

Inherited members