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.Bus
12 : {
13 : public abstract class MultipleHandlersRegisteredException : InvalidOperationException
14 0 : {
15 0 : protected MultipleHandlersRegisteredException(Type type)
16 : : base(string.Format("More than one handler is registered for type '{0}'. You cannot send to more than one handler.", type.FullName))
17 : {
18 : }
19 :
20 0 : protected MultipleHandlersRegisteredException(string message)
21 : : base(message)
22 : {
23 : }
24 : }
25 : }
|