Class AggregateNotFoundException<TAggregateRoot, TAuthenticationToken>
The IAggregateRoot<TAuthenticationToken> requested was not found.
Inheritance
System.Object
System.Exception
AggregateNotFoundException<TAggregateRoot, TAuthenticationToken>
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 AggregateNotFoundException<TAggregateRoot, TAuthenticationToken> : Exception, ISerializable, _Exception where TAggregateRoot : IAggregateRoot<TAuthenticationToken>
Type Parameters
Name | Description |
---|---|
TAggregateRoot | The System.Type of the IAggregateRoot<TAuthenticationToken> that wasn't found. |
TAuthenticationToken | The System.Type of the authentication token. |
Constructors
AggregateNotFoundException(Guid)
Instantiate a new instance of AggregateNotFoundException<TAggregateRoot, TAuthenticationToken> with the provided identifier of the IAggregateRoot<TAuthenticationToken> that wasn't found.
Declaration
public AggregateNotFoundException(Guid id)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | id | The identifier of the IAggregateRoot<TAuthenticationToken> that wasn't found. |
Properties
AggregateType
The System.Type of the IAggregateRoot<TAuthenticationToken> that wasn't found.
Declaration
[DataMember]
public Type AggregateType { get; set; }
Property Value
Type | Description |
---|---|
System.Type |
Id
The identifier of the IAggregateRoot<TAuthenticationToken> that wasn't found.
Declaration
[DataMember]
public Guid Id { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |