Class XmlTransformException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
cloud.opencode.base.core.exception.OpenException
cloud.opencode.base.xml.exception.OpenXmlException
cloud.opencode.base.xml.exception.XmlTransformException
- All Implemented Interfaces:
Serializable
XML Transform Exception - Thrown when XSLT transformation fails
XML 转换异常 - 当 XSLT 转换失败时抛出
This exception is thrown when an XSLT transformation encounters errors, such as invalid XSLT stylesheets or transformation failures.
当 XSLT 转换遇到错误(如无效的 XSLT 样式表或转换失败)时抛出此异常。
Features | 主要功能:
- Exception for XSLT transformation failures - XSLT 转换失败的异常
- Extends OpenXmlException with specific context - 继承 OpenXmlException,带特定上下文
Usage Examples | 使用示例:
// Catch specific exception
try {
// XML operation
} catch (XmlTransformException e) {
System.err.println(e.getMessage());
}
Security | 安全性:
- Thread-safe: Yes (immutable exception) - 线程安全: 是(不可变异常)
- Null-safe: No (message must not be null) - 空值安全: 否(消息不能为 null)
- Since:
- JDK 25, opencode-base-xml V1.0.3
- Author:
- Leon Soo www.LeonSoo.com
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXmlTransformException(String message) Constructs a transform exception with message.XmlTransformException(String message, Throwable cause) Constructs a transform exception with message and cause.XmlTransformException(Throwable cause) Constructs a transform exception with cause. -
Method Summary
Methods inherited from class OpenXmlException
bindError, getColumn, getLine, hasLocation, parseError, transformError, validationError, xpathErrorMethods 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
-
XmlTransformException
Constructs a transform exception with cause. 构造带原因的转换异常。- Parameters:
cause- the cause | 原因
-
XmlTransformException
Constructs a transform exception with message. 构造带消息的转换异常。- Parameters:
message- the detail message | 详细消息
-
XmlTransformException
-