Class XmlParsingException

  • All Implemented Interfaces:
    java.io.Serializable

    public class XmlParsingException
    extends org.xml.sax.SAXException
    An exception thrown during XML parsing, with known line and column.
    Since:
    6906
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      XmlParsingException​(java.lang.Exception e)
      Constructs a new XmlParsingException.
      XmlParsingException​(java.lang.String message)
      Constructs a new XmlParsingException.
      XmlParsingException​(java.lang.String message, java.lang.Exception e)
      Constructs a new XmlParsingException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getColumnNumber()
      Returns the column number where the exception occurred.
      int getLineNumber()
      Returns the line number where the exception occurred.
      java.lang.String getMessage()  
      XmlParsingException rememberLocation​(org.xml.sax.Locator locator)
      Sets the location (line/column) where the exception occurred.
      • Methods inherited from class org.xml.sax.SAXException

        getCause, getException, toString
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • XmlParsingException

        public XmlParsingException​(java.lang.Exception e)
        Constructs a new XmlParsingException.
        Parameters:
        e - The cause
      • XmlParsingException

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

        public XmlParsingException​(java.lang.String message)
        Constructs a new XmlParsingException.
        Parameters:
        message - The error message
    • Method Detail

      • rememberLocation

        public XmlParsingException rememberLocation​(org.xml.sax.Locator locator)
        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 java.lang.String getMessage()
        Overrides:
        getMessage in class org.xml.sax.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