Class EdgeNotFoundException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class EdgeNotFoundException extends GraphException
Edge Not Found Exception 边不存在异常

Exception thrown when an edge is not found in the graph.

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

Features | 主要功能:

Usage Examples | 使用示例:

try {
    // operation that requires edge existence
} catch (EdgeNotFoundException e) {
    Object from = e.getFrom();
    Object to = e.getTo();
}

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

    • EdgeNotFoundException

      public EdgeNotFoundException(Object from, Object to)
      Create edge not found exception 创建边不存在异常
      Parameters:
      from - the source vertex | 源顶点
      to - the target vertex | 目标顶点
  • Method Details

    • getFrom

      public Object getFrom()
      Get the source vertex 获取源顶点
      Returns:
      source vertex | 源顶点
    • getTo

      public Object getTo()
      Get the target vertex 获取目标顶点
      Returns:
      target vertex | 目标顶点