public class XMLParseException
extends java.lang.RuntimeException
$Revision: 1.2 $
$Date: 2006/03/02 16:40:02 $
nanoxml.XMLElement,
Serialized Form| Modifier and Type | Field | Description |
|---|---|---|
static int |
NO_LINE |
Indicates that no line number has been associated with this exception.
|
| Constructor | Description |
|---|---|
XMLParseException(java.lang.String name,
int lineNr,
java.lang.String message) |
Creates an exception.
|
XMLParseException(java.lang.String name,
java.lang.String message) |
Creates an exception.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
getLineNr() |
Where the error occurred, or
NO_LINE if the line number is
unknown. |
public static final int NO_LINE
public XMLParseException(java.lang.String name,
java.lang.String message)
name - The name of the element where the error is located.message - A message describing what went wrong.
message != null
public XMLParseException(java.lang.String name,
int lineNr,
java.lang.String message)
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