模块 jdk.jshell

类 ExecutionControl.ResolutionException

所有已实现的接口:
Serializable
封闭接口:
ExecutionControl

public static class ExecutionControl.ResolutionException extends ExecutionControl.RunException
异常表明遇到了具有未解析引用的 DeclarationSnippet

将此与嵌入在生成的 corralled 代码中的启动 SPIResolutionException (a RuntimeException)进行对比。此外,将此与主 API 中提供的高级异常(带有 DeclarationSnippet 参考)UnresolvedReferenceException 进行对比。

参见:
  • 构造方法详细信息

    • ResolutionException

      public ResolutionException(int id, StackTraceElement [] stackElements)
      构造一个异常,指示已遇到具有未解析引用的 DeclarationSnippet
      参数:
      id - 特定方法的内部标识符
      stackElements - 堆栈跟踪
  • 方法详情

    • id

      public int id()
      检索未解析标识符的内部标识符。
      返回:
      内部标识符