Package com.l2fprod.contrib.nanoxml
Class XMLParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.l2fprod.contrib.nanoxml.XMLParseException
- All Implemented Interfaces:
Serializable
An XMLParseException is thrown when an error occures while parsing an XML
string.
$Revision: 1.2 $
$Date: 2005/11/19 09:15:30 $
- Version:
- 1.6
- Author:
- Marc De Scheemaecker < Marc.DeScheemaecker@advalvas.be >
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionXMLParseException
(String tag, int lineNr, String message) Creates an exception.XMLParseException
(String tag, String message) Creates an exception. -
Method Summary
Modifier and TypeMethodDescriptionint
Where the error occurred, or -1 if the line number is unknown.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
XMLParseException
Creates an exception.- Parameters:
tag
- The name of the tag where the error is located.message
- A message describing what went wrong.
-
XMLParseException
Creates an exception.- Parameters:
tag
- The name of the tag where the error is located.lineNr
- The number of the line in the input.message
- A message describing what went wrong.
-
-
Method Details
-
getLineNr
public int getLineNr()Where the error occurred, or -1 if the line number is unknown.- Returns:
- The LineNr value
-