Uses of Class jdk.jshell.JShellException (Java SE 25 & JDK 25)
Description: use: module: jdk.jshell, package: jdk.jshell, class: JShellException

# Uses of Class
jdk.jshell.JShellException

Packages that use JShellException
Package
Description
jdk.jshell
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.

- ## Uses of JShellException in jdk.jshell

  Subclasses of JShellException in jdk.jshell
  Modifier and Type
  Class
  Description
  `class`
  `EvalException`
  Wraps an throwable thrown in the executing client.
  `class`
  `UnresolvedReferenceException`
  Exception reported on attempting to execute a `RECOVERABLE_DEFINED` snippet.
  Methods in jdk.jshell that return JShellException
  Modifier and Type
  Method
  Description
  `JShellException`
  SnippetEvent.`exception()`
  An instance of `UnresolvedReferenceException`, if an unresolved reference was encountered, or an instance of `EvalException` if an exception was thrown during execution, otherwise `null`.
  `JShellException`
  EvalException.`getCause()`
  Returns the wrapped cause of the throwable in the executing client represented by this `EvalException` or `null` if the cause is nonexistent or unknown.