Show / Hide Table of Contents

Class CommandExecutionException

Raised if an error occurs during command execution

Inheritance
System.Object
CommandExecutionException
CommandExecutionException<TCommand>
Namespace: AzureFromTheTrenches.Commanding
Assembly: AzureFromTheTrenches.Commanding.dll
Syntax
public class CommandExecutionException : Exception

Constructors

| Improve this Doc View Source

CommandExecutionException(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

| Improve this Doc View Source

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

| Improve this Doc View Source

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 Source

Command

The command

Declaration
public object Command { get; }
Property Value
Type Description
System.Object
| Improve this Doc View Source

CommandDispatchContext

The command dispatch context

Declaration
public ICommandDispatchContext CommandDispatchContext { get; }
Property Value
Type Description
ICommandDispatchContext
| Improve this Doc View Source

HandlerExecutionIndex

The index of the handler in the pipeline

Declaration
public int HandlerExecutionIndex { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

HandlerType

The type of the handler

Declaration
public Type HandlerType { get; }
Property Value
Type Description
Type
  • Improve this Doc
  • View Source
  • 0 Comments
Back to top Copyright © 2018 James Randall