Package com.oracle.truffle.sl
Class SLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.oracle.truffle.api.exception.AbstractTruffleException
com.oracle.truffle.sl.SLException
- All Implemented Interfaces:
com.oracle.truffle.api.interop.TruffleObject,Serializable
public final class SLException
extends com.oracle.truffle.api.exception.AbstractTruffleException
SL does not need a sophisticated error checking and reporting mechanism, so all unexpected
conditions just abort execution. The exceptions defined in this class are used when we abort from
within the SL implementation.
- See Also:
-
Field Summary
Fields inherited from class com.oracle.truffle.api.exception.AbstractTruffleException
UNLIMITED_STACK_TRACE -
Method Summary
Modifier and TypeMethodDescriptionstatic com.oracle.truffle.api.exception.AbstractTruffleExceptionstatic com.oracle.truffle.api.exception.AbstractTruffleExceptionstatic com.oracle.truffle.api.exception.AbstractTruffleExceptionProvides a user-readable message for run-time type errors.static com.oracle.truffle.api.exception.AbstractTruffleExceptionundefinedFunction(com.oracle.truffle.api.nodes.Node location, Object name) static com.oracle.truffle.api.exception.AbstractTruffleExceptionundefinedProperty(com.oracle.truffle.api.nodes.Node location, Object name) Methods inherited from class com.oracle.truffle.api.exception.AbstractTruffleException
fillInStackTrace, getCause, getEncapsulatingSourceSection, getLocation, getStackTraceElementLimitMethods inherited from class java.lang.Throwable
addSuppressed, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
create
public static com.oracle.truffle.api.exception.AbstractTruffleException create(String message, com.oracle.truffle.api.nodes.Node location) -
typeError
public static com.oracle.truffle.api.exception.AbstractTruffleException typeError(com.oracle.truffle.api.nodes.Node operation, Object... values) -
typeError
public static com.oracle.truffle.api.exception.AbstractTruffleException typeError(com.oracle.truffle.api.nodes.Node location, String operationName, Object... values) Provides a user-readable message for run-time type errors. SL is strongly typed, i.e., there are no automatic type conversions of values. -
undefinedFunction
public static com.oracle.truffle.api.exception.AbstractTruffleException undefinedFunction(com.oracle.truffle.api.nodes.Node location, Object name) -
undefinedProperty
public static com.oracle.truffle.api.exception.AbstractTruffleException undefinedProperty(com.oracle.truffle.api.nodes.Node location, Object name)
-