Class XmlParseException

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.oorian.xml.XmlParseException
All Implemented Interfaces:
Serializable

public class XmlParseException extends Exception
Exception thrown when XML parsing fails.
See Also:
  • Constructor Details

    • XmlParseException

      public XmlParseException(String message)
      Constructs a new XmlParseException with the specified message.
      Parameters:
      message - the error message.
    • XmlParseException

      public XmlParseException(String message, int line, int column)
      Constructs a new XmlParseException with the specified message and location.
      Parameters:
      message - the error message.
      line - the line number where the error occurred.
      column - the column number where the error occurred.
    • XmlParseException

      public XmlParseException(String message, Throwable cause)
      Constructs a new XmlParseException with the specified message and cause.
      Parameters:
      message - the error message.
      cause - the underlying cause.
  • Method Details

    • getLine

      public int getLine()
      Returns the line number where the parse error occurred.
      Returns:
      the line number, or -1 if not available.
    • getColumn

      public int getColumn()
      Returns the column number where the parse error occurred.
      Returns:
      the column number, or -1 if not available.