Class 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

Methods

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

Methods declared in class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

getSnippet

public DeclarationSnippet getSnippet()

Return the Snippet which has the unresolved reference(s).

Returns:
the Snippet of the RECOVERABLE_DEFINED definition snippet.