Class GraphLimitExceededException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class GraphLimitExceededException extends GraphException
Graph Limit Exceeded Exception 图限制超出异常

Exception thrown when graph operation exceeds configured limits.

当图操作超出配置限制时抛出的异常。

Features | 主要功能:

Usage Examples | 使用示例:

try {
    SafeGraphOperations.safeAddVertex(graph, vertex);
} catch (GraphLimitExceededException e) {
    long limit = e.getLimit();
    long actual = e.getActual();
}

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

    • GraphLimitExceededException

      public GraphLimitExceededException(String message)
      Create graph limit exceeded exception 创建图限制超出异常
      Parameters:
      message - the error message | 错误消息
    • GraphLimitExceededException

      public GraphLimitExceededException(String message, long limit, long actual)
      Create graph limit exceeded exception with details 使用详情创建图限制超出异常
      Parameters:
      message - the error message | 错误消息
      limit - the configured limit | 配置的限制
      actual - the actual value | 实际值
  • Method Details

    • getLimit

      public long getLimit()
      Get the configured limit 获取配置的限制
      Returns:
      the limit | 限制
    • getActual

      public long getActual()
      Get the actual value 获取实际值
      Returns:
      the actual value | 实际值