Package net.sf.saxon.type
Class SchemaException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- javax.xml.transform.TransformerException
-
- net.sf.saxon.trans.XPathException
-
- net.sf.saxon.type.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.sf.saxon.trans.XPathException
XPathException.Circularity, XPathException.StackOverflow
-
-
Constructor Summary
Constructors Constructor Description SchemaException(java.lang.String message)
Creates a new XMLException with the given message.SchemaException(java.lang.String message, java.lang.Throwable exception)
Creates a new XMLException with the given message and nested exception.SchemaException(java.lang.String message, Location locator)
SchemaException(java.lang.Throwable exception)
Creates a new XMLException with the given nested exception.
-
Method Summary
-
Methods inherited from class net.sf.saxon.trans.XPathException
asStaticError, asTypeError, asTypeErrorIf, fromXmlProcessingError, getErrorCodeQName, getErrorObject, getFailingExpression, getHostLanguage, getLocator, getMessage, getXPathContext, hasBeenReported, hasErrorCode, isGlobalError, isReportableStatically, isStaticError, isSyntaxError, isTypeError, makeXPathException, maybeSetContext, maybeSetErrorCode, maybeSetLocation, maybeWithContext, maybeWithErrorCode, maybeWithFailingExpression, maybeWithLocation, replacingErrorCode, setErrorCode, setErrorCodeQName, setErrorObject, setHasBeenReported, setHostLanguage, setHostLanguage, setIsGlobalError, setIsStaticError, setIsSyntaxError, setIsTypeError, setLocation, setXPathContext, showErrorCode, withErrorCode, withErrorCode, withFailingExpression, withLocation, withMessage, withXPathContext
-
Methods inherited from class javax.xml.transform.TransformerException
getCause, getException, getLocationAsString, getMessageAndLocation, initCause, printStackTrace, printStackTrace, printStackTrace, setLocator
-
-
-
-
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 exceptionexception
- the nested exception
-
-