public interface XmlProcessingError
StaticError
is dropped, as it had
become misleading.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
|
java.lang.String |
getTerminationMessage()
Ask whether this error is to be treated as fatal, and return the associated message
|
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
|
void |
setTerminationMessage(java.lang.String message)
Indicate that this error is to be treated as fatal; that is, execution will be abandoned
after reporting this error.
|
HostLanguage getHostLanguage()
boolean isStaticError()
boolean isTypeError()
QName getErrorCode()
java.lang.String getMessage()
Location getLocation()
default java.lang.String getModuleUri()
boolean isWarning()
java.lang.String getPath()
java.lang.Throwable getCause()
XmlProcessingError asWarning()
void setTerminationMessage(java.lang.String message)
ErrorReporter
, for example
if the error is considered so severe that further processing is not worthwhile, or if
too many errors have been signalled. There is no absolute guarantee that setting this
property will cause execution to be abandoned. If a dynamic error is marked as fatal, it
will generally not be caught by any try/catch mechanism within the stylesheet or query.message
- an error message giving the reason for the fatal errorjava.lang.String getTerminationMessage()
boolean isAlreadyReported()
void setAlreadyReported(boolean reported)
reported
- true if the error has been reportedCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.