Table of Contents

Class ChangeFeedProcessorUserException

Namespace
Microsoft.Azure.Cosmos
Assembly
Microsoft.Azure.Cosmos.Client.dll

Exception occurred when an operation in an IChangeFeedObserver is running and throws by user code

public class ChangeFeedProcessorUserException : Exception, ISerializable
Inheritance
ChangeFeedProcessorUserException
Implements
Inherited Members
Extension Methods

Constructors

ChangeFeedProcessorUserException(Exception, ChangeFeedProcessorContext)

Initializes a new instance of the ChangeFeedProcessorUserException class using the specified internal exception.

public ChangeFeedProcessorUserException(Exception originalException, ChangeFeedProcessorContext context)

Parameters

originalException Exception

Exception thrown by the user code.

context ChangeFeedProcessorContext

Context under which the exception occurred.

ChangeFeedProcessorUserException(SerializationInfo, StreamingContext)

Initializes a new instance of the ChangeFeedProcessorUserException for serialization purposes.

protected ChangeFeedProcessorUserException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo object that holds serialized object data for the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.

Properties

ChangeFeedProcessorContext

Contextual information that identifies which was the payload that was delivered to the delegate when this error occurred.

public ChangeFeedProcessorContext ChangeFeedProcessorContext { get; }

Property Value

ChangeFeedProcessorContext

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the System.Runtime.Serialization.SerializationInfo with information about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo object that holds serialized object data for the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.