public class XmlException extends Exception
This is an exception class that you can use to encapsulate all
of the information from Ælfred's error
callback.
This is not necessary for routine use of Ælfred, but it
is used by the optional HandlerBase
class.
Note that the core Ælfred classes do not use this exception.
XmlHandler.error(java.lang.String, java.lang.String, int, int)
,
HandlerBase
,
Serialized FormConstructor and Description |
---|
XmlException(String message,
String systemId,
int line,
int column)
Construct a new XML parsing exception.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumn()
Get the column number containing the error.
|
int |
getLine()
Get the line number containing the error.
|
String |
getMessage()
Get the error message from the parser.
|
String |
getSystemId()
Get the URI of the entity containing the error.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public XmlException(String message, String systemId, int line, int column)
message
- The error message from the parser.systemId
- The URI of the entity containing the error.line
- The line number where the error appeared.column
- The column number where the error appeared.public String getMessage()
getMessage
in class Throwable
public String getSystemId()
public int getLine()
public int getColumn()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.