Class MultipleCommandHandlersRegisteredException
The System.Exception that is thrown when more than one ICommandHandler<TAuthenticationToken, TCommand> if found for a given ICommand<TAuthenticationToken> that only expects one.
Inheritance
System.Object
System.Exception
System.SystemException
System.InvalidOperationException
MultipleCommandHandlersRegisteredException
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.Exceptions
Assembly: Cqrs.dll
Syntax
[Serializable]
public class MultipleCommandHandlersRegisteredException : MultipleHandlersRegisteredException, ISerializable, _Exception
Constructors
MultipleCommandHandlersRegisteredException(String)
Instantiates a new instance of MultipleCommandHandlersRegisteredException with a specified error message.
Declaration
public MultipleCommandHandlersRegisteredException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
MultipleCommandHandlersRegisteredException(Type)
Instantiates a new instance of MultipleCommandHandlersRegisteredException.
Declaration
public MultipleCommandHandlersRegisteredException(Type type)
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The System.Type of ICommand<TAuthenticationToken> that expected only one ICommandHandler<TAuthenticationToken, TCommand>. |