类 XmlParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.apexes.commons.xml.XmlParseException
- 所有已实现的接口:
Serializable
An XmlParseException is thrown when an error occures while parsing an XML
string.
$Revision: 1.5 $
$Date: 2002/03/24 10:27:59 $
- 版本:
- $Name: RELEASE_2_2_1 $, $Revision: 1.5 $
- 作者:
- Marc De Scheemaecker
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明static final intIndicates 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. -
方法概要
-
字段详细资料
-
NO_LINE
public static final int NO_LINEIndicates that no line number has been associated with this exception.- 另请参阅:
-
-
构造器详细资料
-
XmlParseException
Creates an exception.- 参数:
name- The name of the element where the error is located.message- A message describing what went wrong.
- Preconditions:
-
message != null
- Postconditions:
-
- getLineNr() => NO_LINE
-
XmlParseException
Creates an exception.- 参数:
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.
- Preconditions:
-
message != nulllineNr > 0
- Postconditions:
-
- getLineNr() => lineNr
-
-
方法详细资料
-
getLineNr
public int getLineNr()Where the error occurred, orNO_LINEif the line number is unknown.- 另请参阅:
-
nanoxml.XmlParseException#NO_LINE
-