Class DesensitizeException

All Implemented Interfaces:
OpenExceptionMeta, Serializable

public class DesensitizeException extends OpenStringException
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 Details

    • DesensitizeException

      public DesensitizeException(String message)
      Constructs a new desensitize exception with the specified detail message. 使用指定的详细消息构造新脱敏异常。
      Parameters:
      message - the detail message | 详细消息
    • DesensitizeException

      public DesensitizeException(String message, Throwable cause)
      Constructs a new desensitize exception with the specified detail message and cause. 使用指定的详细消息和原因构造新脱敏异常。
      Parameters:
      message - the detail message | 详细消息
      cause - the cause | 原因