Class FileValidationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
tech.riemann.nif.starter.file.FileValidationException
- All Implemented Interfaces:
Serializable
文件校验异常
当 FileSecurityValidator 校验失败时抛出,携带 FileValidationError
以表达精确的失败原因(业务错误码 + HTTP 状态码)。
由全局异常处理器中的专用 @ExceptionHandler 拦截,
统一映射为 400 Bad Request 并返回包含业务错误码的 GlobalError。
- Author:
- kerbores(kerbores@gmail.com)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FileValidationException
-
FileValidationException
-
-
Method Details
-
getError
-
getErrorCode
-