Package com.oorian.xml
Class XmlParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oorian.xml.XmlParseException
- All Implemented Interfaces:
Serializable
Exception thrown when XML parsing fails.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXmlParseException(String message) Constructs a new XmlParseException with the specified message.XmlParseException(String message, int line, int column) Constructs a new XmlParseException with the specified message and location.XmlParseException(String message, Throwable cause) Constructs a new XmlParseException with the specified message and cause. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
XmlParseException
Constructs a new XmlParseException with the specified message.- Parameters:
message- the error message.
-
XmlParseException
Constructs a new XmlParseException with the specified message and location.- Parameters:
message- the error message.line- the line number where the error occurred.column- the column number where the error occurred.
-
XmlParseException
Constructs a new XmlParseException with the specified message and cause.- Parameters:
message- the error message.cause- the underlying cause.
-
-
Method Details
-
getLine
public int getLine()Returns the line number where the parse error occurred.- Returns:
- the line number, or -1 if not available.
-
getColumn
public int getColumn()Returns the column number where the parse error occurred.- Returns:
- the column number, or -1 if not available.
-