Class VertexNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.graph.exception.GraphException
cloud.opencode.base.graph.exception.VertexNotFoundException
- All Implemented Interfaces:
OpenExceptionMeta, Serializable
Vertex Not Found Exception
顶点不存在异常
Exception thrown when a vertex is not found in the graph.
当顶点在图中未找到时抛出的异常。
Features | 主要功能:
- Carries the missing vertex information - 携带缺失的顶点信息
- Extends
GraphExceptionwithGraphErrorCode.VERTEX_NOT_FOUND- 使用VERTEX_NOT_FOUND错误码扩展GraphException
Usage Examples | 使用示例:
try {
// operation requiring vertex existence
} catch (VertexNotFoundException e) {
Object vertex = e.getVertex();
}
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
ConstructorsConstructorDescriptionVertexNotFoundException(Object vertex) Create vertex not found exception 创建顶点不存在异常 -
Method Summary
Methods inherited from class GraphException
getGraphErrorCodeMethods inherited from class OpenException
getComponent, getErrorCode, getMessage, getRawMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface OpenExceptionMeta
getMetaPrefix
-
Constructor Details
-
VertexNotFoundException
Create vertex not found exception 创建顶点不存在异常- Parameters:
vertex- the missing vertex | 缺失的顶点
-
-
Method Details
-
getVertex
-