Class ConfigValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.github.theword.queqiao.core.config.exception.ConfigValidationException
- All Implemented Interfaces:
Serializable
显式识别出的用户配置错误
与"未预期的内部异常"严格区分:
- 本异常代表用户配置本身不合法(类型错误、数值越界等), 由解析与校验阶段主动识别并抛出,可安全地回退默认值;
- 其它
RuntimeException代表程序缺陷, 必须 ERROR + 堆栈并向上抛出,不得被静默转换成默认配置 ——否则真实缺陷会被伪装成"配置问题"而永远查不出来。
- Since:
- 0.6.12
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfigValidationException(String fieldPath, String message) ConfigValidationException(String fieldPath, String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ConfigValidationException
-
ConfigValidationException
-
-
Method Details
-
getFieldPath
-