public class XmlParseException extends RuntimeException
$Revision: 1.4 $
$Date: 2002/03/24 10:27:59 $
XmlElement
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
NO_LINE
Indicates that no line number has been associated with this exception.
|
Constructor and Description |
---|
XmlParseException(String name,
int lineNumber,
String message)
Creates an exception.
|
Modifier and Type | Method and Description |
---|---|
int |
lineNumber()
Where the error occurred, or
NO_LINE if the line number is
unknown. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int NO_LINE
public XmlParseException(String name, int lineNumber, String message)
name
- The name of the element where the error is located.lineNumber
- The number of the line in the input.message
- A message describing what went wrong.
message != null
lineNumber > 0
Copyright © 2021–2024. All rights reserved.