nanoxml
public class XMLParseException extends RuntimeException
$Revision: 1.4 $
$Date: 2002/03/24 10:27:59 $
Version: $Name: RELEASE_2_2_1 $, $Revision: 1.4 $
Field Summary | |
---|---|
static int | NO_LINE
Indicates that no line number has been associated with this exception. |
Constructor Summary | |
---|---|
XMLParseException(String name, String message)
Creates an exception.
| |
XMLParseException(String name, int lineNr, String message)
Creates an exception.
|
Method Summary | |
---|---|
int | getLineNr()
Where the error occurred, or NO_LINE if the line number is
unknown.
|
Parameters: name The name of the element where the error is located. message A message describing what went wrong.
message != null
Parameters: 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.
message != null
lineNr > 0
NO_LINE
if the line number is
unknown.
See Also: NO_LINE