Class EventSourcingException
The exception that is thrown when the stored events cannot be applied back to the domain entity.
Implements
Inherited Members
Namespace: Silverback.Domain
Assembly: Silverback.EventSourcing.dll
Syntax
[Serializable]
public class EventSourcingException : SilverbackException, ISerializable
Constructors
| Improve this doc View sourceEventSourcingException()
Initializes a new instance of the EventSourcingException class.
Declaration
public EventSourcingException()
EventSourcingException(SerializationInfo, StreamingContext)
Initializes a new instance of the EventSourcingException class with the serialized data.
Declaration
protected EventSourcingException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | The SerializationInfo that holds the serialized object data about the exception being thrown. |
StreamingContext | context | The StreamingContext that contains contextual information about the source or destination. |
EventSourcingException(string)
Initializes a new instance of the EventSourcingException class with the specified message.
Declaration
public EventSourcingException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | The exception message. |
EventSourcingException(string, Exception)
Initializes a new instance of the EventSourcingException class with the specified message and inner exception.
Declaration
public EventSourcingException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
string | message | The exception message. |
Exception | innerException | The inner exception. |