Class TreeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CycleDetectedException

public class TreeException extends RuntimeException
Tree Exception 树异常

Base exception for tree operations.

树操作的基础异常。

Features | 主要功能:

  • Base exception for tree operations - 树操作的基础异常
  • Error code support - 错误码支持
  • Factory methods for common errors - 常见错误的工厂方法

Usage Examples | 使用示例:

throw TreeException.duplicateId(nodeId);
throw TreeException.nodeNotFound(nodeId);
throw TreeException.maxDepthExceeded(1000);

Security | 安全性:

  • Thread-safe: Yes (immutable after construction) - 是(构造后不可变)
  • Null-safe: No (message should not be null) - 否(消息不应为null)
Since:
JDK 25, opencode-base-tree V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also: