UnresolvedReferenceException (Java SE 15 & JDK 15) (original) (raw)
All Implemented Interfaces:
[Serializable](../../../java.base/java/io/Serializable.html "interface in java.io")
public class UnresolvedReferenceException extends JShellException
Exception reported on attempting to execute aRECOVERABLE_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:
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](../../../java.base/java/lang/Throwable.html#addSuppressed%28java.lang.Throwable%29), [fillInStackTrace](../../../java.base/java/lang/Throwable.html#fillInStackTrace%28%29), [getCause](../../../java.base/java/lang/Throwable.html#getCause%28%29), [getLocalizedMessage](../../../java.base/java/lang/Throwable.html#getLocalizedMessage%28%29), [getMessage](../../../java.base/java/lang/Throwable.html#getMessage%28%29), [getStackTrace](../../../java.base/java/lang/Throwable.html#getStackTrace%28%29), [getSuppressed](../../../java.base/java/lang/Throwable.html#getSuppressed%28%29), [initCause](../../../java.base/java/lang/Throwable.html#initCause%28java.lang.Throwable%29), [printStackTrace](../../../java.base/java/lang/Throwable.html#printStackTrace%28%29), [printStackTrace](../../../java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintStream%29), [printStackTrace](../../../java.base/java/lang/Throwable.html#printStackTrace%28java.io.PrintWriter%29), [setStackTrace](../../../java.base/java/lang/Throwable.html#setStackTrace%28java.lang.StackTraceElement%5B%5D%29), [toString](../../../java.base/java/lang/Throwable.html#toString%28%29)
Method Details
getSnippet
Return the Snippet which has the unresolved reference(s).
Returns:
theSnippet
of theRECOVERABLE_DEFINED definition snippet.