Class CommandDispatchException
Raised if an error occurred during command dispatch
Inheritance
System.Object
CommandDispatchException
Namespace: AzureFromTheTrenches.Commanding
Assembly: AzureFromTheTrenches.Commanding.dll
Syntax
public class CommandDispatchException : Exception
Constructors
| Improve this Doc View SourceCommandDispatchException(Object, ICommandDispatchContext, Type)
Constructor
Declaration
public CommandDispatchException(object command, ICommandDispatchContext commandDispatchContext, Type dispatcherType)
Parameters
Type | Name | Description |
---|---|---|
System.Object | command | The command being dispatched |
ICommandDispatchContext | commandDispatchContext | The dispatch context |
Type | dispatcherType | The type of dispatcher in use |
CommandDispatchException(Object, ICommandDispatchContext, Type, String)
Constructor
Declaration
public CommandDispatchException(object command, ICommandDispatchContext commandDispatchContext, Type dispatcherType, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | command | The command being dispatched |
ICommandDispatchContext | commandDispatchContext | The dispatch context |
Type | dispatcherType | The type of dispatcher in use |
System.String | message | Error message |
CommandDispatchException(Object, ICommandDispatchContext, Type, String, Exception)
Constructor
Declaration
public CommandDispatchException(object command, ICommandDispatchContext commandDispatchContext, Type dispatcherType, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.Object | command | The command being dispatched |
ICommandDispatchContext | commandDispatchContext | The dispatch context |
Type | dispatcherType | The type of dispatcher in use |
System.String | message | Error message |
Exception | innerException | The inner exceptiont that caused the fault |
Properties
| Improve this Doc View SourceCommand
The command being dispatcher
Declaration
public object Command { get; }
Property Value
Type | Description |
---|---|
System.Object |
CommandDispatchContext
The dispatch context
Declaration
public ICommandDispatchContext CommandDispatchContext { get; }
Property Value
Type | Description |
---|---|
ICommandDispatchContext |
DispatcherType
The type of dispatcher in use
Declaration
public Type DispatcherType { get; }
Property Value
Type | Description |
---|---|
Type |