Package io.kojan.xml

Class XMLException

  • All Implemented Interfaces:
    java.io.Serializable

    public class XMLException
    extends java.lang.Exception
    Indicates an exception that occurred during XML serialization or deserialization, such as malformed XML or XML not conforming to the expected schema.
    Author:
    Mikolaj Izdebski
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLException​(java.lang.String message)
      Constructs a new XML exception with the specified detail message and no cause.
      XMLException​(java.lang.String message, java.lang.Throwable cause)
      Constructs a new XML exception with the specified detail message and cause.
      XMLException​(java.lang.Throwable cause)
      Constructs a new XML exception with the specified cause and no detail message.
    • Method Summary

      • Methods inherited from class java.lang.Throwable

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

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

      • XMLException

        public XMLException​(java.lang.String message)
        Constructs a new XML exception with the specified detail message and no cause.
        Parameters:
        message - the exception detail message
        See Also:
        Exception(String)
      • XMLException

        public XMLException​(java.lang.String message,
                            java.lang.Throwable cause)
        Constructs a new XML exception with the specified detail message and cause.
        Parameters:
        message - the exception detail message
        cause - the cause of this exception
        See Also:
        Exception(String,Throwable)
      • XMLException

        public XMLException​(java.lang.Throwable cause)
        Constructs a new XML exception with the specified cause and no detail message.
        Parameters:
        cause - the cause of this exception
        See Also:
        Exception(Throwable)