Class VertexNotFoundException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class VertexNotFoundException extends GraphException
Vertex Not Found Exception 顶点不存在异常

Exception thrown when a vertex is not found in the graph.

当顶点在图中未找到时抛出的异常。

Features | 主要功能:

Usage Examples | 使用示例:

try {
    // operation requiring vertex existence
} catch (VertexNotFoundException e) {
    Object vertex = e.getVertex();
}

Security | 安全性:

  • Thread-safe: Yes (immutable after construction) - 线程安全: 是(构造后不可变)
  • Null-safe: Yes - 空值安全: 是
Since:
JDK 25, opencode-base-graph V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Constructor Details

    • VertexNotFoundException

      public VertexNotFoundException(Object vertex)
      Create vertex not found exception 创建顶点不存在异常
      Parameters:
      vertex - the missing vertex | 缺失的顶点
  • Method Details

    • getVertex

      public Object getVertex()
      Get the missing vertex 获取缺失的顶点
      Returns:
      the vertex | 顶点