- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- jdk.jshell.JShellException
-
- jdk.jshell.UnresolvedReferenceException
-
- All Implemented Interfaces:
Serializable
public class UnresolvedReferenceException extends JShellException
Exception reported on attempting to execute aRECOVERABLE_DEFINEDsnippet.The stack can be queried by methods on
Exception. Note that in stack trace frames representing JShell Snippets,StackTraceElement.getFileName()will return "#" followed by the Snippet id and for snippets without a method name (for example an expression)StackTraceElement.getName()will be the empty string.- Since:
- 9
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeclarationSnippetgetSnippet()Return the Snippet which has the unresolved reference(s).-
Methods declared in class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getSnippet
public DeclarationSnippet getSnippet()
Return the Snippet which has the unresolved reference(s).- Returns:
- the
Snippetof theRECOVERABLE_DEFINEDdefinition snippet.
-
-