diff graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/ObjectType.java @ 18865:d6dba4c723c0

Interop: improve exception names and JavaDoc
author Matthias Grimmer <grimmer@ssw.jku.at>
date Wed, 14 Jan 2015 13:43:16 +0100
parents 6db7923af642
children c76742cc2c6f
line wrap: on
line diff
--- a/graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/ObjectType.java	Tue Jan 13 19:48:15 2015 +0100
+++ b/graal/com.oracle.truffle.api.object/src/com/oracle/truffle/api/object/ObjectType.java	Wed Jan 14 13:43:16 2015 +0100
@@ -76,11 +76,11 @@
         return new ForeignAccessFactory() {
 
             public InteropPredicate getLanguageCheck() {
-                throw new AccessException(this.toString() + " cannot be shared");
+                throw new UnsupportedMessageException(this.toString() + " cannot be shared");
             }
 
             public CallTarget getAccess(Message tree) {
-                throw new AccessException(this.toString() + " cannot be shared; Message not possible: " + tree.toString());
+                throw new UnsupportedMessageException(this.toString() + " cannot be shared; Message not possible: " + tree.toString());
             }
         };
     }