Line data Source code
1 : #region Copyright
2 : // // -----------------------------------------------------------------------
3 : // // <copyright company="cdmdotnet Limited">
4 : // // Copyright cdmdotnet Limited. All rights reserved.
5 : // // </copyright>
6 : // // -----------------------------------------------------------------------
7 : #endregion
8 :
9 : using System;
10 :
11 : namespace Cqrs.Domain.Exceptions
12 : {
13 : [Serializable]
14 : public class AggregateNotFoundException<TAggregateRoot, TAuthenticationToken> : Exception
15 : where TAggregateRoot : IAggregateRoot<TAuthenticationToken>
16 0 : {
17 0 : public AggregateNotFoundException(Guid id)
18 : : base(string.Format("Aggregate '{0}' of type '{1}' was not found", id, typeof(TAggregateRoot).FullName))
19 : {
20 : }
21 : }
22 : }
|