Class OpenStringException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.string.exception.OpenStringException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DesensitizeException
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 Summary
ConstructorsConstructorDescriptionOpenStringException(String message) Constructs a new exception with the specified detail message.OpenStringException(String message, Throwable cause) Constructs a new 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
-
OpenStringException
Constructs a new exception with the specified detail message. 使用指定的详细消息构造新异常。- Parameters:
message- the detail message | 详细消息
-
OpenStringException
-