diff truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java @ 22081:ff531952a91c

Making sure IOException from TruffleLanguage.parse method is correctly propagated to TruffleVM.eval caller.
author Jaroslav Tulach <jaroslav.tulach@oracle.com>
date Fri, 14 Aug 2015 13:57:12 +0200
parents a7ca9e9a1d51
children 0058a9461865
line wrap: on
line diff
--- a/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java	Thu Aug 13 18:22:22 2015 +0200
+++ b/truffle/com.oracle.truffle.api/src/com/oracle/truffle/api/TruffleLanguage.java	Fri Aug 14 13:57:12 2015 +0200
@@ -120,7 +120,9 @@
      *            {@link CallTarget#call(java.lang.Object...)}
      * @return a call target to invoke which also keeps in memory the {@link Node} tree representing
      *         just parsed <code>code</code>
-     * @throws IOException thrown when I/O or parsing goes wrong
+     * @throws IOException thrown when I/O or parsing goes wrong. Here-in thrown exception is
+     *             propagate to the user who called one of <code>eval</code> methods of
+     *             {@link TruffleVM}
      */
     protected abstract CallTarget parse(Source code, Node context, String... argumentNames) throws IOException;