Class InvalidVertexException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class InvalidVertexException extends GraphException
Invalid Vertex Exception 无效顶点异常

Exception thrown when a vertex is invalid (e.g., null).

当顶点无效(如null)时抛出的异常。

Features | 主要功能:

Usage Examples | 使用示例:

try {
    graph.addVertex(null);
} catch (InvalidVertexException e) {
    // handle invalid vertex
}

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

    • InvalidVertexException

      public InvalidVertexException(String message)
      Create invalid vertex exception 创建无效顶点异常
      Parameters:
      message - the error message | 错误消息