Class XmlTransformException

All Implemented Interfaces:
Serializable

public class XmlTransformException extends OpenXmlException
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 Details

    • XmlTransformException

      public XmlTransformException(Throwable cause)
      Constructs a transform exception with cause. 构造带原因的转换异常。
      Parameters:
      cause - the cause | 原因
    • XmlTransformException

      public XmlTransformException(String message)
      Constructs a transform exception with message. 构造带消息的转换异常。
      Parameters:
      message - the detail message | 详细消息
    • XmlTransformException

      public XmlTransformException(String message, Throwable cause)
      Constructs a transform exception with message and cause. 构造带消息和原因的转换异常。
      Parameters:
      message - the detail message | 详细消息
      cause - the cause | 原因