Serializable
public class XMLParseException extends RuntimeException
$Revision: 39 $
$Date: 2009-10-14 19:49:29 -0700 (Wed, 14 Oct 2009) $
see nanoxml.XMLElement
Modifier and Type | Field | Description |
---|---|---|
static int |
NO_LINE |
Indicates that no line number has been associated with this exception.
|
Constructor | Description |
---|---|
XMLParseException(String name,
int lineNr,
String message) |
Creates an exception.
|
XMLParseException(String name,
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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int NO_LINE
public XMLParseException(String name, String message)
name
- The name of the element where the error is located.message
- A message describing what went wrong.
message != null
public XMLParseException(String name, int lineNr, 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