Class CommandExecutionException
Raised if an error occurs during command execution
Inheritance
System.Object
System.Exception
CommandExecutionException
Implements
System.Runtime.Serialization.ISerializable
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.ToString()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Message
System.Exception.Source
System.Exception.StackTrace
System.Exception.TargetSite
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: AzureFromTheTrenches.Commanding
Assembly: AzureFromTheTrenches.Commanding.dll
Syntax
public class CommandExecutionException : Exception, ISerializable
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 |
| System.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 |
| System.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 |
| System.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 |
| System.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 |
|---|---|
| System.Type |
Implements
System.Runtime.Serialization.ISerializable