public interface XmlProcessingError extends StaticError
The interface extends StaticError so that
the methods XsltCompiler.setErrorList(List) and XQueryCompiler.setErrorList(List)
continue to function. It is not the case, however, that every XmlProcessingError
is a static error.
| Modifier and Type | Method and Description |
|---|---|
XmlProcessingError |
asWarning()
Return an XmlProcessingError containing the same information, but to be treated as
a warning condition
|
java.lang.Throwable |
getCause()
Return an underlying exception.
|
QName |
getErrorCode()
Get the error code, as a QName.
|
HostLanguage |
getHostLanguage() |
Location |
getLocation()
Get the location information associated with the error
|
java.lang.String |
getMessage()
Get the error message associated with this error
|
default java.lang.String |
getModuleUri()
Get The URI of the query or stylesheet module in which the error was detected (as a string)
May be null if the location of the error is unknown, or if the error is not localized
to a specific module, or if the module in question has no known URI (for example, if
it was supplied as an anonymous Stream)
|
java.lang.String |
getPath()
Get the absolute XPath expression that identifies the node within its document
where the error occurred, if available
|
boolean |
isAlreadyReported()
Ask whether this static error has already been reported
|
boolean |
isStaticError()
Ask whether this is a static error, defined as an error that can be detected during
static analysis of a stylesheet, query, schema, or XPath expression.
|
boolean |
isTypeError()
Ask whether this is a type error.
|
boolean |
isWarning()
Ask whether this error is being reported as a warning condition.
|
void |
setAlreadyReported(boolean reported)
Say whether this error has already been reported
|
getColumnNumber, getFatalErrorMessage, getInstructionName, getLineNumber, setFatalHostLanguage getHostLanguage()
boolean isStaticError()
boolean isTypeError()
isTypeError in interface StaticErrorQName getErrorCode()
getErrorCode in interface StaticErrorjava.lang.String getMessage()
getMessage in interface StaticErrorLocation getLocation()
getLocation in interface StaticErrordefault java.lang.String getModuleUri()
getModuleUri in interface StaticErrorboolean isWarning()
isWarning in interface StaticErrorjava.lang.String getPath()
getPath in interface StaticErrorjava.lang.Throwable getCause()
XmlProcessingError asWarning()
boolean isAlreadyReported()
void setAlreadyReported(boolean reported)
reported - true if the error has been reportedCopyright (c) 2004-2020 Saxonica Limited.