Class SaxParseException
- All Implemented Interfaces:
Serializable
SAX Parse Exception - Exception thrown during SAX parsing
SAX 解析异常 - SAX 解析期间抛出的异常
Features | 主要功能:
- SAX-specific parse exception with line/column info - 带行/列信息的 SAX 特定解析异常
- Wraps org.xml.sax.SAXParseException - 包装 org.xml.sax.SAXParseException
Usage Examples | 使用示例:
// Catch SAX parse exception
try {
SaxParser.createSecure().parse(xml);
} catch (SaxParseException e) {
System.err.println("Error at line " + e.getLine());
}
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
ConstructorsConstructorDescriptionSaxParseException(String message, int line, int column) SaxParseException(String message, int line, int column, Throwable 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
-
SaxParseException
-
SaxParseException
-
SaxParseException
-