Mercurial > hg > truffle
comparison graal/com.oracle.truffle.api/src/com/oracle/truffle/api/nodes/UnexpectedResultException.java @ 7530:5e3d1a68664e
applied mx eclipseformat to all Java files
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 23 Jan 2013 16:34:57 +0100 |
parents | a4b84ba6dc2e |
children | 8b7996916df6 |
comparison
equal
deleted
inserted
replaced
7529:4a11124a3563 | 7530:5e3d1a68664e |
---|---|
21 * questions. | 21 * questions. |
22 */ | 22 */ |
23 package com.oracle.truffle.api.nodes; | 23 package com.oracle.truffle.api.nodes; |
24 | 24 |
25 /** | 25 /** |
26 * An exception that should be thrown if the return value cannot be represented as a value of the return type. The | 26 * An exception that should be thrown if the return value cannot be represented as a value of the |
27 * Truffle optimizer has special knowledge of this exception class and will never compile a catch block that catches this | 27 * return type. The Truffle optimizer has special knowledge of this exception class and will never |
28 * exception type. | 28 * compile a catch block that catches this exception type. |
29 */ | 29 */ |
30 public final class UnexpectedResultException extends SlowPathException { | 30 public final class UnexpectedResultException extends SlowPathException { |
31 | 31 |
32 private static final long serialVersionUID = 3676602078425211386L; | 32 private static final long serialVersionUID = 3676602078425211386L; |
33 private final Object result; | 33 private final Object result; |
34 | 34 |
35 /** | 35 /** |
36 * Creates the exception with the alternative result that cannot be respresented as a value of the return type. | 36 * Creates the exception with the alternative result that cannot be respresented as a value of |
37 * the return type. | |
38 * | |
37 * @param result the alternative result | 39 * @param result the alternative result |
38 */ | 40 */ |
39 public UnexpectedResultException(Object result) { | 41 public UnexpectedResultException(Object result) { |
40 super(null, null); | 42 super(null, null); |
41 assert !(result instanceof Throwable); | 43 assert !(result instanceof Throwable); |