Mercurial > hg > graal-compiler
comparison 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 |
comparison
equal
deleted
inserted
replaced
18864:552993e5795a | 18865:d6dba4c723c0 |
---|---|
74 | 74 |
75 public ForeignAccessFactory getForeignAccessFactory() { | 75 public ForeignAccessFactory getForeignAccessFactory() { |
76 return new ForeignAccessFactory() { | 76 return new ForeignAccessFactory() { |
77 | 77 |
78 public InteropPredicate getLanguageCheck() { | 78 public InteropPredicate getLanguageCheck() { |
79 throw new AccessException(this.toString() + " cannot be shared"); | 79 throw new UnsupportedMessageException(this.toString() + " cannot be shared"); |
80 } | 80 } |
81 | 81 |
82 public CallTarget getAccess(Message tree) { | 82 public CallTarget getAccess(Message tree) { |
83 throw new AccessException(this.toString() + " cannot be shared; Message not possible: " + tree.toString()); | 83 throw new UnsupportedMessageException(this.toString() + " cannot be shared; Message not possible: " + tree.toString()); |
84 } | 84 } |
85 }; | 85 }; |
86 } | 86 } |
87 } | 87 } |