Class CommandExecutionException
Raised if an error occurs during command execution
Namespace: AzureFromTheTrenches.Commanding
Assembly: AzureFromTheTrenches.Commanding.dll
Syntax
public class CommandExecutionException : Exception
Constructors
| Improve this Doc View SourceCommandExecutionException(Object, Type, Int32, ICommandDispatchContext)
Constructor
Declaration
public CommandExecutionException(object command, Type handlerType, int handlerExecutionIndex, ICommandDispatchContext commandDispatchContext)
Parameters
Type | Name | Description |
---|---|---|
System.Object | command | The command |
Type | handlerType | The handler in use when the execution failed |
System.Int32 | handlerExecutionIndex | The index of the handler in the pipeline |
ICommandDispatchContext | commandDispatchContext | The dispatch context |
CommandExecutionException(Object, Type, Int32, ICommandDispatchContext, String)
Constructor
Declaration
public CommandExecutionException(object command, Type handlerType, int handlerExecutionIndex, ICommandDispatchContext commandDispatchContext, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Object | command | The command |
Type | handlerType | The handler in use when the execution failed |
System.Int32 | handlerExecutionIndex | The index of the handler in the pipeline |
ICommandDispatchContext | commandDispatchContext | The dispatch context |
System.String | message | Error message |
CommandExecutionException(Object, Type, Int32, ICommandDispatchContext, String, Exception)
Constructor
Declaration
public CommandExecutionException(object command, Type handlerType, int handlerExecutionIndex, ICommandDispatchContext commandDispatchContext, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.Object | command | The command |
Type | handlerType | The handler in use when the execution failed |
System.Int32 | handlerExecutionIndex | The index of the handler in the pipeline |
ICommandDispatchContext | commandDispatchContext | The dispatch context |
System.String | message | Error message |
Exception | innerException | The exception that caused the fault |
Properties
| Improve this Doc View SourceCommand
The command
Declaration
public object Command { get; }
Property Value
Type | Description |
---|---|
System.Object |
CommandDispatchContext
The command dispatch context
Declaration
public ICommandDispatchContext CommandDispatchContext { get; }
Property Value
Type | Description |
---|---|
ICommandDispatchContext |
HandlerExecutionIndex
The index of the handler in the pipeline
Declaration
public int HandlerExecutionIndex { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
HandlerType
The type of the handler
Declaration
public Type HandlerType { get; }
Property Value
Type | Description |
---|---|
Type |