public class XmlParseException extends RuntimeException
$Revision: 1.5 $
$Date: 2002/03/24 10:27:59 $
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
NO_LINE
Indicates that no line number has been associated with this exception.
|
| 构造器和说明 |
|---|
XmlParseException(String name,
int lineNr,
String message)
Creates an exception.
|
XmlParseException(String name,
String message)
Creates an exception.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getLineNr()
Where the error occurred, or
NO_LINE if the line number is
unknown. |
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
Copyright © 2020. All rights reserved.