Class OpenStringException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
DesensitizeException

public class OpenStringException extends OpenException
String Component Exception 字符串组件异常

Base exception for all string processing operations.

字符串处理操作的基础异常类。

Features | 主要功能:

  • Base exception for string operations - 字符串操作基础异常
  • Template processing errors - 模板处理错误
  • Format conversion errors - 格式转换错误
  • Validation failures - 验证失败

Usage Examples | 使用示例:

// Template error
throw new OpenStringException("Invalid template syntax: " + template);

// Format error
throw new OpenStringException("Cannot convert to snake_case: " + input);

// With cause
throw new OpenStringException("Regex compilation failed", cause);

Security | 安全性:

  • Thread-safe: Yes - 线程安全: 是
  • Immutable: Yes - 不可变: 是
Since:
JDK 25, opencode-base-string V1.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Constructor Details

    • OpenStringException

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

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