Class DesensitizeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.string.exception.OpenStringException
cloud.opencode.base.string.desensitize.exception.DesensitizeException
- All Implemented Interfaces:
Serializable
Desensitization Exception
脱敏异常
Exception thrown during data desensitization operations.
数据脱敏操作期间抛出的异常。
Features | 主要功能:
- Desensitization errors - 脱敏错误
- Strategy application failures - 策略应用失败
- Annotation processing errors - 注解处理错误
Usage Examples | 使用示例:
// Strategy not found
throw new DesensitizeException("Desensitize strategy not found: " + type);
// Invalid configuration
throw new DesensitizeException("Invalid keep length: " + keep);
Security | 安全性:
- Thread-safe: Yes (immutable after construction) - 线程安全: 是(构造后不可变)
- Since:
- JDK 25, opencode-base-string V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDesensitizeException(String message) Constructs a new desensitize exception with the specified detail message.DesensitizeException(String message, Throwable cause) Constructs a new desensitize exception with the specified detail message and cause. -
Method Summary
Methods inherited from class OpenException
getComponent, getErrorCode, getMessage, getRawMessageMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
DesensitizeException
Constructs a new desensitize exception with the specified detail message. 使用指定的详细消息构造新脱敏异常。- Parameters:
message- the detail message | 详细消息
-
DesensitizeException
-