Class AggregateOrEventMissingIdException
The IEvent<TAuthenticationToken> had not Id set.
Inheritance
System.Object
System.Exception
AggregateOrEventMissingIdException
Inherited Members
System.Exception.GetBaseException()
System.Exception.ToString()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Cqrs.Domain.Exceptions
Assembly: Cqrs.dll
Syntax
[Serializable]
public class AggregateOrEventMissingIdException : Exception, ISerializable, _Exception
Constructors
AggregateOrEventMissingIdException(Type, Type)
Instantiate a new instance of AggregateOrEventMissingIdException with the System.Type of the IEvent<TAuthenticationToken> and IAggregateRoot<TAuthenticationToken>.
The eventType
that was trying to be saved on an aggregateType
.
Declaration
public AggregateOrEventMissingIdException(Type aggregateType, Type eventType)
Parameters
Type | Name | Description |
---|---|---|
System.Type | aggregateType | The System.Type of the IAggregateRoot<TAuthenticationToken> that the IEvent<TAuthenticationToken> was trying to be saved on. |
System.Type | eventType | The System.Type of the IEvent<TAuthenticationToken> that was trying to be saved. |
Properties
AggregateType
The System.Type of the IAggregateRoot<TAuthenticationToken> that the IEvent<TAuthenticationToken> was trying to be saved on.
Declaration
[DataMember]
public Type AggregateType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
EventType
The System.Type of the IEvent<TAuthenticationToken> that was trying to be saved.
Declaration
[DataMember]
public Type EventType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |