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:
Serializable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.sf.saxon.trans.XPathException
XPathException.Circularity, XPathException.StackOverflow
-
Constructor Summary
ConstructorsConstructorDescriptionSchemaException
(String message) Creates a new XMLException with the given message.SchemaException
(String message, Throwable exception) Creates a new XMLException with the given message and nested exception.SchemaException
(String message, Location locator) SchemaException
(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, 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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, setStackTrace, toString
-
Constructor Details
-
SchemaException
-
SchemaException
Creates a new XMLException with the given message.- Parameters:
message
- the message for this Exception
-
SchemaException
Creates a new XMLException with the given nested exception.- Parameters:
exception
- the nested exception
-
SchemaException
Creates a new XMLException with the given message and nested exception.- Parameters:
message
- the detail message for this exceptionexception
- the nested exception
-