public class StaticError
extends java.lang.Object
Constructor and Description |
---|
StaticError(javax.xml.transform.TransformerException err) |
StaticError(javax.xml.transform.TransformerException err,
boolean isWarning) |
Modifier and Type | Method and Description |
---|---|
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 |
getInstructionName()
Get a name identifying the kind of instruction, in terms meaningful to a user.
|
int |
getLineNumber()
The line number locating the error within a query or stylesheet module
|
java.lang.String |
getMessage()
Return the error message associated with this error
|
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)
|
java.lang.String |
getPath()
Get the absolute XPath expression that identifies the node within its document
where the error occurred, if available
|
XPathException |
getUnderlyingException()
Return the underlying exception.
|
boolean |
isTypeError()
Indicate whether this condition is a type error.
|
boolean |
isWarning()
Indicate whether this error is being reported as a warning condition.
|
void |
setWarning(boolean warning) |
public StaticError(javax.xml.transform.TransformerException err, boolean isWarning)
public StaticError(javax.xml.transform.TransformerException err)
public void setWarning(boolean warning)
public QName getErrorCode()
public java.lang.String getMessage()
public java.lang.String getModuleUri()
public int getColumnNumber()
public int getLineNumber()
public java.lang.String getInstructionName()
public boolean isWarning()
public boolean isTypeError()
public java.lang.String getPath()
public XPathException getUnderlyingException()
Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.