Class XmlParserException

  • All Implemented Interfaces:
    Serializable

    public class XmlParserException
    extends RichRuntimeException
    The XmlParserException exception is thrown to indicate an error condition when parsing an XML file.
    Author:
    Marcus Portmann
    See Also:
    Serialized Form
    • Constructor Detail

      • XmlParserException

        public XmlParserException()
        Constructs a new XmlParserException with null as its message.
      • XmlParserException

        public XmlParserException​(SAXParseException cause)
        Constructs a new XmlParserException using the information contained in the specified SAXParseException.
        Parameters:
        cause - the SAXParseException giving the cause of the exception
      • XmlParserException

        public XmlParserException​(String message)
        Constructs a new XmlParserException with the specified message.
        Parameters:
        message - The message saved for later retrieval by the getMessage() method.
      • XmlParserException

        public XmlParserException​(Throwable cause)
        Constructs a new XmlParserException with the specified cause and a message of (cause==null ? null : cause.toString()) (which typically contains the class and message of cause).
        Parameters:
        cause - The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
      • XmlParserException

        public XmlParserException​(String code,
                                  String message)
        Constructs a new XmlParserException with the specified code and message.
        Parameters:
        code - the error code
        message - The message saved for later retrieval by the getMessage() method.
      • XmlParserException

        public XmlParserException​(String message,
                                  Throwable cause)
        Constructs a new XmlParserException with the specified message and cause.
        Parameters:
        message - The message saved for later retrieval by the getMessage() method.
        cause - The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)
      • XmlParserException

        public XmlParserException​(String code,
                                  String message,
                                  Throwable cause)
        Constructs a new XmlParserException with the specified code, message and cause.
        Parameters:
        code - the error code
        message - The message saved for later retrieval by the getMessage() method.
        cause - The cause saved for later retrieval by the getCause() method. (A null value is permitted if the cause is nonexistent or unknown)