Class SchemaException

  • All Implemented Interfaces:
    java.io.Serializable

    public class SchemaException
    extends XPathException
    An exception that identifies an error in reading, parsing, or validating a schema.

    The reason this extends TransformerException is because of the pervasive use of the JAXP ErrorListener (which accepts a TransformerException) to provide error handling

    See Also:
    Serialized Form
    • Constructor Detail

      • SchemaException

        public SchemaException​(java.lang.String message,
                               Location locator)
      • SchemaException

        public SchemaException​(java.lang.String message)
        Creates a new XMLException with the given message.
        Parameters:
        message - the message for this Exception
      • SchemaException

        public SchemaException​(java.lang.Throwable exception)
        Creates a new XMLException with the given nested exception.
        Parameters:
        exception - the nested exception
      • SchemaException

        public SchemaException​(java.lang.String message,
                               java.lang.Throwable exception)
        Creates a new XMLException with the given message and nested exception.
        Parameters:
        message - the detail message for this exception
        exception - the nested exception