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 a
RECOVERABLE_DEFINED
snippet.
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
Modifier and Type Method Description DeclarationSnippet
getSnippet()
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 Details
-
getSnippet
Return the Snippet which has the unresolved reference(s).- Returns:
- the
Snippet
of theRECOVERABLE_DEFINED
definition snippet.
-