Class FeatureNotFoundException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.feature.exception.FeatureException
cloud.opencode.base.feature.exception.FeatureNotFoundException
- All Implemented Interfaces:
Serializable
Feature Not Found Exception
功能不存在异常
Exception thrown when a feature is not found.
当功能不存在时抛出的异常。
Usage Examples | 使用示例:
throw new FeatureNotFoundException("unknown-feature");
Features | 主要功能:
- Specific exception for missing feature lookups - 功能查找缺失的特定异常
- Carries the missing feature name for diagnostics - 携带缺失功能名称用于诊断
Security | 安全性:
- Thread-safe: Yes (immutable) - 线程安全: 是(不可变)
- Null-safe: Partial (validates inputs) - 空值安全: 部分(验证输入)
- Since:
- JDK 25, opencode-base-feature V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureNotFoundException(String featureKey) Create exception for feature key 为功能键创建异常 -
Method Summary
Methods inherited from class FeatureException
getErrorCode, getFeatureKeyMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FeatureNotFoundException
Create exception for feature key 为功能键创建异常- Parameters:
featureKey- the feature key | 功能键
-