Class XMLFormatException

  • All Implemented Interfaces:
    Serializable

    public class XMLFormatException
    extends Exception
    Thrown to indicate that parsed XML data was either not well-formed or didn't conform to a certain XML Schema. This exception usually encapsulates a parser-specific exception (i.e. it's returned by Throwable.getCause()), like a SAXException.
    Author:
    Patrick Haas
    See Also:
    Serialized Form
    • Constructor Detail

      • XMLFormatException

        public XMLFormatException​(String message)
        Create a new XML format exception with the given exception message.
        Parameters:
        message - The message of the exception.
        See Also:
        Exception(String)
      • XMLFormatException

        public XMLFormatException​(Throwable cause)
        Creates a new XML format exception with the given cause.
        Parameters:
        cause - The cause of the exception.
        See Also:
        Exception(Throwable)
      • XMLFormatException

        public XMLFormatException​(String message,
                                  Throwable cause)
        Creates a new XML format exception with the given cause and message.
        Parameters:
        message - The message of the exception.
        cause - The cause of the exception.
        See Also:
        Exception(String, Throwable)