AbstractTruffleException
as a base class
for Truffle exceptions.@Deprecated public interface TruffleException
TruffleException
are
considered internal errors.
TruffleException
is most efficient if the cause
is left
uninitialized. Implementations of TruffleException
also should not prevent initialization
of the exception cause, e.g., by overriding Throwable.initCause(Throwable)
.
In order to be efficient, a TruffleException
should override
Throwable.fillInStackTrace()
without the synchronized
modifier, so that it
returns this
:
@SuppressWarnings("sync-override") @Override public final Throwable fillInStackTrace() { return this; }
TruffleStackTrace to access the stack trace of an exception.