Class XmlParsingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.xml.sax.SAXException
org.openstreetmap.josm.tools.XmlParsingException
All Implemented Interfaces:
Serializable

public class XmlParsingException extends SAXException
An exception thrown during XML parsing, with known line and column.
Since:
6906
See Also:
  • Field Details

  • Constructor Details

    • XmlParsingException

      Constructs a new XmlParsingException.
      Parameters:
      e - The cause
    • XmlParsingException

      public XmlParsingException(String message, Exception e)
      Constructs a new XmlParsingException.
      Parameters:
      message - The error message
      e - The cause
    • XmlParsingException

      public XmlParsingException(String message)
      Constructs a new XmlParsingException.
      Parameters:
      message - The error message
  • Method Details

    • rememberLocation

      Sets the location (line/column) where the exception occurred.
      Parameters:
      locator - object giving the location (line/column) where the exception occurred
      Returns:
      this
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class SAXException
    • getColumnNumber

      public int getColumnNumber()
      Returns the column number where the exception occurred.
      Returns:
      the column number where the exception occurred
    • getLineNumber

      public int getLineNumber()
      Returns the line number where the exception occurred.
      Returns:
      the line number where the exception occurred