Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/UnexpectedResultException.java @ 9258:07f8d136a05e
Truffle API changes for the Frame API. Introduction of Assumptions class.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Tue, 23 Apr 2013 15:34:06 +0200 |
parents | 8b7996916df6 |
children | 494b818b527c |
comparison
equal
deleted
inserted
replaced
9257:542712a4732a | 9258:07f8d136a05e |
---|---|
37 * the return type. | 37 * the return type. |
38 * | 38 * |
39 * @param result the alternative result | 39 * @param result the alternative result |
40 */ | 40 */ |
41 public UnexpectedResultException(Object result) { | 41 public UnexpectedResultException(Object result) { |
42 super(null, null); | |
43 assert !(result instanceof Throwable); | 42 assert !(result instanceof Throwable); |
44 this.result = result; | 43 this.result = result; |
45 } | 44 } |
46 | 45 |
47 /** | 46 /** |
48 * @return the unexpected result | 47 * @return the unexpected result |
49 */ | 48 */ |
50 public Object getResult() { | 49 public Object getResult() { |
51 return result; | 50 return result; |
52 } | 51 } |
53 | |
54 /** | |
55 * For performance reasons, this exception does not record any stack trace information. | |
56 */ | |
57 @SuppressWarnings("sync-override") | |
58 @Override | |
59 public Throwable fillInStackTrace() { | |
60 return null; | |
61 } | |
62 } | 52 } |