/** * Re-throw an {@link InteropException} as a {@link RuntimeException}, which allows throwing it * without an explicit throws declaration. * * The method returns {@link RuntimeException} so it can be used as * {@link com.oracle.truffle.api.dsl.test.interop.Snippets.RethrowExample} but the method never * returns. It throws this exception internally rather than returning any value. * * @return the exception * @since 0.14 */ public final RuntimeException raise() { return silenceException(RuntimeException.class, this); }
/** * Re-throw an {@link InteropException} as a {@link RuntimeException}, which allows throwing it * without an explicit throws declaration. * * The method returns {@link RuntimeException} so it can be used as * {@link com.oracle.truffle.api.dsl.test.interop.Snippets.RethrowExample} but the method never * returns. It throws this exception internally rather than returning any value. * * @return the exception * @since 0.14 */ public final RuntimeException raise() { return silenceException(RuntimeException.class, this); }