Class EdgeNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.graph.exception.GraphException
cloud.opencode.base.graph.exception.EdgeNotFoundException
- All Implemented Interfaces:
Serializable
Edge Not Found Exception
边不存在异常
Exception thrown when an edge is not found in the graph.
当边在图中未找到时抛出的异常。
Features | 主要功能:
- Carries source and target vertex information - 携带源顶点和目标顶点信息
- Extends
GraphExceptionwithGraphErrorCode.EDGE_NOT_FOUND- 使用EDGE_NOT_FOUND错误码扩展GraphException
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 Summary
ConstructorsConstructorDescriptionEdgeNotFoundException(Object from, Object to) Create edge not found exception 创建边不存在异常 -
Method Summary
Methods inherited from class GraphException
getErrorCodeMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
EdgeNotFoundException
-
-
Method Details
-
getFrom
-
getTo
-