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

public class InvalidityHandlerWrapper
implements net.sf.saxon.lib.InvalidityHandler

This class `InvalidityHandlerWrapper` extends the standard error handler for errors found during validation of an instance document against a schema, used if a user specifies the -report option on validate. Its effect is to output the validation errors found into the filename specified, in an XML format. This is a wrapper class to wrap a .NET `InvalidityHandler` class for interfacing within Java.

### Constructor Summary
InvalidityHandlerWrapper (IInvalidityHandler inHandler) Create a standard Invalidity Handler.

### Method Summary
net.sf.saxon.om.Sequence | endReporting() Get the value to be associated with a validation exception. May return null. In the case of the `InvalidityGenerator`, this returns the XML document containing the validation report.
void | reportInvalidity(net.sf.saxon.lib.Invalidity i) Receive notification of a validity error.
void | startReporting(string systemId) At the start of a validation episode, initialize the handler.

## Constructor Detail

### InvalidityHandlerWrapper

public InvalidityHandlerWrapper(IInvalidityHandler inHandler)

Create a standard Invalidity Handler.

Parameters:

`inHandler` - The .NET `IInvalidityHandler`.

## Method Detail

### endReporting

public net.sf.saxon.om.Sequence endReporting()

Get the value to be associated with a validation exception. May return null. In the case of the `InvalidityGenerator`, this returns the XML document containing the validation report.

Returns:

A value (or null). This will be the value returned as the value of the variable `$err:value` during try/catch processor.

### reportInvalidity

public void reportInvalidity(net.sf.saxon.lib.Invalidity i)

Receive notification of a validity error.

Parameters:

`i` - Information about the nature of the invalidity.

### startReporting

public void startReporting(string systemId)

At the start of a validation episode, initialize the handler.

Parameters:

`systemId` - Optional; may be used to represent the destination of any report produced.