# INotifyErrors

Description:

`INotifyErrors` is an interface for managing the errors of a notification. This interface extends the IErrors interface with the ability to add and remove error messages to/from the collection.
```cpp
import "OxSvrSpt.idl"
```
Public Methods:
```cpp
HRESULT Add ([in] BSTR SourceName, [in] long ISourceCode, [in] BSTR FaultString, [in] long FaultCode, [in] BSTR InfoList)
HRESULT Clear ()
HRESULT NewResultCode ([in] long newValue)
HRESULT NewResponseResult ([in] long newValue)
```
Documentation of Element Functions:

* `HRESULT Add ([in] BSTR SourceName, [in] long ISourceCode, [in] BSTR FaultString, [in] long FaultCode, [in] BSTR InfoList)`

[abn.Add](../abn.md#abn.Add) adds a new error message to the collection.

Parameters:

: `SourceName` name of the source where the error occurred

: `ISourceCode` source line where the error occurred.

: `FaultString` error description

: `FaultCode` error code

: `InfoList` InfoList

* `HRESULT Clear ()`

`Clear` removes all error objects from the collection.

* `HRESULT NewResponseResult ([in] long newValue)`

`NewResponseResult` sets the return value of the notification.

Parameters:

: `newVal` return value of the notification

* `HRESULT NewResultCode ([in] long newValue)`

`NewResultCode` sets the error value of the notification.

Parameters:

: `newVal` server error value
