langtools/src/jdk.jshell/share/classes/jdk/jshell/UnresolvedReferenceException.java
equal
deleted
inserted
replaced
36 * the Snippet id and for snippets without a method name (for example an |
36 * the Snippet id and for snippets without a method name (for example an |
37 * expression) <code>StackTraceElement.getName()</code> will be the |
37 * expression) <code>StackTraceElement.getName()</code> will be the |
38 * empty string. |
38 * empty string. |
39 */ |
39 */ |
40 @SuppressWarnings("serial") // serialVersionUID intentionally omitted |
40 @SuppressWarnings("serial") // serialVersionUID intentionally omitted |
41 public class UnresolvedReferenceException extends Exception { |
41 public class UnresolvedReferenceException extends JShellException { |
42 |
42 |
43 final DeclarationSnippet snippet; |
43 final DeclarationSnippet snippet; |
44 |
44 |
45 UnresolvedReferenceException(DeclarationSnippet snippet, StackTraceElement[] stackElements) { |
45 UnresolvedReferenceException(DeclarationSnippet snippet, StackTraceElement[] stackElements) { |
46 super("Attempt to use definition snippet with unresolved references"); |
46 super("Attempt to use definition snippet with unresolved references"); |