Saxon.Api

 

 

Saxon.Api

Class XmlProcessingError


public class XmlProcessingError
extends StaticError

The XmlProcessorError class contains information about an error detected during compilation or execution of a stylesheet, query, XPath expression, or schema.

Property Summary

 XmlProcessingError AsWarning

This get property returns a XmlProcessingError containing the same information, but to be treated as a warning condition.

 string FatalMessage

Property to indicate that this error is to be treated as fatal, that is, execution will be abandoned after reporting this error. This method may be called by ErrorReporter, for example if the error is considered so server 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. It can also be used to ask whether this error is to be treated as fatal, and if so, return the relevant message.

 HostLanguage HostLanguage

Property to get the host language where this error originates from.

 bool StaticError

Property to check if this error is a StaticError.

 bool TypeError

Property which indicates whether this condition is a type error.

 

Method Summary

 bool IsAlreadyReported()

Ask whether this static error has already been reported.

 void SetAlreadyReported(bool reported)

Say whether this error has already been reported.

 

Property Detail

AsWarning

public XmlProcessingError AsWarning {get; }

This get property returns a XmlProcessingError containing the same information, but to be treated as a warning condition.

FatalMessage

public string FatalMessage {get; set; }

Property to indicate that this error is to be treated as fatal, that is, execution will be abandoned after reporting this error. This method may be called by ErrorReporter, for example if the error is considered so server 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. It can also be used to ask whether this error is to be treated as fatal, and if so, return the relevant message.

HostLanguage

public HostLanguage HostLanguage {get; }

Property to get the host language where this error originates from.

StaticError

public bool StaticError {get; }

Property to check if this error is a StaticError.

TypeError

public bool TypeError {get; }

Property which indicates whether this condition is a type error.

Method Detail

IsAlreadyReported

public bool IsAlreadyReported()

Ask whether this static error has already been reported.

Returns:

SetAlreadyReported

public void SetAlreadyReported(bool reported)

Say whether this error has already been reported.

Parameters:

reported - true if the error has been reported