nanoxml
Class XMLParseException
RuntimeException
nanoxml.XMLParseException
public class XMLParseException
extends RuntimeException
An XMLParseException is thrown when an error occures while parsing an XML
string.
$Revision: 1.4 $
$Date: 2002/03/24 10:27:59 $
Version:
- Marc De Scheemaecker
XMLElement
static int | NO_LINE - Indicates that no line number has been associated with this exception.
|
int | getLineNr() - Where the error occurred, or
NO_LINE if the line number is
unknown.
|
NO_LINE
public static final int NO_LINE
Indicates that no line number has been associated with this exception.
- -1
XMLParseException
public XMLParseException(String name,
String message)
Creates an exception.
name
- The name of the element where the error is located.message
- A message describing what went wrong.
- Preconditions:
-
- Postconditions:
-
XMLParseException
public XMLParseException(String name,
int lineNr,
String message)
Creates an exception.
name
- The name of the element where the error is located.lineNr
- The number of the line in the input.message
- A message describing what went wrong.
- Preconditions:
-
message != null
lineNr > 0
- Postconditions:
-
getLineNr
public int getLineNr()
Where the error occurred, or NO_LINE
if the line number is
unknown.
NO_LINE