Interface ICosmosDbErrorHandler
Implementations of this handle Cosmos errors at the Function level.
Namespace: FunctionMonkey.Commanding.Cosmos.Abstractions
Assembly: FunctionMonkey.Abstractions.dll
Syntax
public interface ICosmosDbErrorHandler
Methods
| Improve this Doc View SourceHandleError(Exception, Document)
Handle a error processing a Cosmos document. To abort processing of the current batch return false.
Declaration
Task<bool> HandleError(Exception ex, Document document)
Parameters
| Type | Name | Description |
|---|---|---|
| Exception | ex | The exception that caused the error |
| Document | document | The document that caused the error |
Returns
| Type | Description |
|---|---|
| Task<System.Boolean> | True to continue processing, false to stop processing of the batch |