类 XmlParseException

所有已实现的接口:
Serializable

public class XmlParseException extends RuntimeException
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
另请参阅:
  • 字段详细资料

    • NO_LINE

      public static final int NO_LINE
      Indicates that no line number has been associated with this exception.
      另请参阅:
  • 构造器详细资料

    • XmlParseException

      public XmlParseException(String name, String message)
      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

      public XmlParseException(String name, int lineNr, String message)
      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 != null
      • lineNr > 0
      Postconditions:
      • getLineNr() => lineNr
  • 方法详细资料

    • getLineNr

      public int getLineNr()
      Where the error occurred, or NO_LINE if the line number is unknown.
      另请参阅:
      • nanoxml.XmlParseException#NO_LINE