### Saxon.Api

- BinaryResource
- CatalogCollection
- DirectoryCollection
- DocumentBuilder
- DomDestination
- DynamicContext
- DynamicError
- EmptyEnumerator<T>
- ErrorReporter
- ErrorReporterToStaticError
- ErrorReporterWrapper
- ExtensionFunction
- ExtensionFunctionCall
- ExtensionFunctionDefinition
- Feature<T>
- FeatureKeys
- HostLanguage
- ICollectionFinder
- IErrorReporter
- IInvalidityHandler
- IMessageListener
- IMessageListener2
- InvalidityHandlerWrapper
- IPredicate<in XdmItem>
- IQueryResolver
- IResource
- IResourceCollection
- IResourceFactory
- IResultDocumentHandler
- IXmlLocation
- JarCollection
- NamespaceConstant
- NullDestination
- Predicate<T>
- Predicates
- Processor
- QName
- RawDestination
- RecoveryPolicy
- Resource
- ResourceCollection
- SchemaManager
- SchemaResolver
- SchemaValidationMode
- SchemaValidator
- Serializer
- StandardCollectionFinder
- StandardLogger
- StaticContext
- StaticError
- Step<TInput, TResult>
- Steps
- TextWriterDestination
- TreeModel
- URIQueryParameters
- ValidationFailure
- WhitespacePolicy
- XdmAnyArrayType
- XdmAnyFunctionType
- XdmAnyItemType
- XdmAnyMapType
- XdmAnyNodeType
- XdmArray
- XdmAtomicType
- XdmAtomicValue
- XdmAxis
- XdmDestination
  - - TreeProtector
- XdmEmptySequence
- XdmExternalObjectValue
- XdmFunctionItem
- XdmItem
- XdmItemType
- XdmMap
- XdmNode
- XdmNodeKind
- XdmSequenceType
- XdmValue
- XmlDestination
- XmlProcessingError
- XmlResource
- XPathCompiler
- XPathExecutable
- XPathSelector
- XQueryCompiler
- XQueryEvaluator
- XQueryExecutable
- Xslt30Transformer
- XsltCompiler
- XsltExecutable
  - - ParameterDetails
- XsltPackage
- XsltTransformer

### 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