public interface StaticError
XsltCompiler.setErrorList(List)
and XQueryCompiler.setErrorList(List)
continue to function.
The name is misleading, because all errors including dynamic errors implement this interface.
Modifier and Type | Method and Description |
---|---|
default int |
getColumnNumber()
The coloumn number locating the error within a query or stylesheet module
|
QName |
getErrorCode()
The error code, as a QName.
|
java.lang.String |
getFatalErrorMessage()
Ask whether this error is to be treated as fatal, and if so, return the relevant messsage
|
default java.lang.String |
getInstructionName()
Get a name identifying the kind of instruction, in terms meaningful to a user.
|
default int |
getLineNumber()
The line number locating the error within a query or stylesheet module
|
Location |
getLocation()
Get the location information associated with the error
|
java.lang.String |
getMessage()
Return the error message associated with this error
|
default java.lang.String |
getModuleUri()
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)
|
default java.lang.String |
getPath()
Get the absolute XPath expression that identifies the node within its document
where the error occurred, if available
|
boolean |
isTypeError()
Indicate whether this condition is a type error.
|
boolean |
isWarning()
Indicate whether this error is being reported as a warning condition.
|
void |
setFatal(java.lang.String message)
Indicate that this error is to be treated as fatal; that is, execution will be abandoned
after reporting this error.
|
QName getErrorCode()
java.lang.String getMessage()
Location getLocation()
default java.lang.String getModuleUri()
default int getColumnNumber()
default int getLineNumber()
default java.lang.String getInstructionName()
boolean isWarning()
boolean isTypeError()
default java.lang.String getPath()
void setFatal(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.java.lang.String getFatalErrorMessage()
Copyright (c) 2004-2022 Saxonica Limited. All rights reserved.