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 AggregateOrEventMissingIdException : Exception
15 0 : {
16 0 : public AggregateOrEventMissingIdException(Type aggregateType, Type eventType)
17 : : base(string.Format("An event of type {0} tried to be saved from {1} but no id was set on either", eventType.FullName, aggregateType.FullName))
18 : {
19 : }
20 : }
21 : }
|