Class SchemaException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SchemaException
    extends java.lang.Exception
    The Schema exception used when parsing Schema.
    Author:
    Christopher Mindus
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemaException​(org.w3c.dom.Element element, java.lang.String message)
      Creates a Schema Exception with a message.
      SchemaException​(org.w3c.dom.Element element, java.lang.String message, java.lang.Throwable exception)
      Creates a Schema Exception with a message and an exception cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()
      Returns a short description of this throwable.
      • Methods inherited from class java.lang.Throwable

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

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

      • SchemaException

        public SchemaException​(org.w3c.dom.Element element,
                               java.lang.String message)
        Creates a Schema Exception with a message.
        Parameters:
        element - The problem element.
        message - The detail message.
      • SchemaException

        public SchemaException​(org.w3c.dom.Element element,
                               java.lang.String message,
                               java.lang.Throwable exception)
        Creates a Schema Exception with a message and an exception cause.
        Parameters:
        element - The element.
        message - The detail message.
        exception - The exception, i.e. the real cause.
    • Method Detail

      • toString

        public java.lang.String toString()
        Returns a short description of this throwable. The result is the concatenation of:
        • the name of the class of this object
        • ": " (a colon and a space)
        • the result of invoking this object's Throwable.getLocalizedMessage() method
        If getLocalizedMessage returns null, then just the class name is returned.
        Overrides:
        toString in class java.lang.Throwable
        Returns:
        a string representation of this throwable.