Saxon.Api
Class DynamicError
-
public class DynamicError
- extends Exception
The DynamicError
class contains information about a dynamic error detected during
execution of a stylesheet, query, or XPath expression.
Constructor Summary |
|
---|---|
DynamicError (string message)
Create a new |
Property Summary |
|
---|---|
QName | ErrorCode
The error code, as a |
bool | IsTypeError Indicate whether this condition is a type error. |
bool | IsWarning Indicate whether this error is being reported as a warning condition. If so, applications may ignore the condition, though the results may not be as intended. |
int | LineNumber The line number locating the error within a query or stylesheet module. |
string | Message Return the message associated with this error. |
string | ModuleUri The URI of the query or stylesheet module in which the error was detected (as a string). |
net.sf.saxon.trans.XPathException | UnderlyingException Return the underlying exception. This is unstable as this is an internal object. |
Method Summary |
|
---|---|
string | ToString() Return the error message. |
Constructor Detail
DynamicError
Create a new DynamicError
, specifying the error message.
Parameters:
message
- The error messageProperty Detail
ErrorCode
The error code, as a QName
. May be null if no error code has been assigned.
IsWarning
Indicate whether this error is being reported as a warning condition. If so, applications may ignore the condition, though the results may not be as intended.
LineNumber
The line number locating the error within a query or stylesheet module.
May be set to -1 if the location of the error is unknown.
ModuleUri
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
).
UnderlyingException
Return the underlying exception. This is unstable as this is an internal object.
Returns:
XPathException
Return the error message.