Class XmlParseException

  • All Implemented Interfaces:
    Serializable

    public class XmlParseException
    extends XmlException
    Exception that is thrown when a problem in the XML parsing occurs.
    Since:
    5.0
    Author:
    I. de Jong
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlParseException

        public XmlParseException​(String message)
        Constructs the exception with a message explaining the cause of the error.
        Parameters:
        message - A message explaining the cause of the error.
      • XmlParseException

        public XmlParseException​(String message,
                                 String[] parseErrors)
        Constructs the exception with a message explaining the cause of the error and an array of parse errors.
        Parameters:
        message - A message explaining the cause of the error.
        parseErrors - Array containing parse errors.
      • XmlParseException

        public XmlParseException​(String message,
                                 String[] parseErrors,
                                 Throwable cause)
        Constructs the exception with a message explaining the cause of the error and an array of parse errors.
        Parameters:
        message - A message explaining the cause of the error.
        parseErrors - Array containing parse errors.
        cause - The root cause of the exception
      • XmlParseException

        public XmlParseException​(String message,
                                 Throwable cause)
        Constructs the exception with a message explaining the cause of the error.
        Parameters:
        message - A message explaining the cause of the error.
        cause - The cause of the error.
    • Method Detail

      • getParseErrors

        public String[] getParseErrors()
        Retrieve the list of parse errors that occurred during DOM-parsing. This list is empty if using a SAX-parser or when the exception didn't occur because of a parse error.
        Returns:
        array of error messages (may be empty).