Table of Contents

Class CommandException

Namespace
Fluxer.Net.Commands
Assembly
Fluxer.Net.dll

The exception that is thrown if another exception occurs during a command execution.

public class CommandException : Exception, ISerializable
Inheritance
object
CommandException
Implements
Inherited Members

Constructors

CommandException(CommandInfo, ICommandContext, Exception)

Initializes a new instance of the CommandException class using a command information, a command context, and the exception that interrupted the execution.

public CommandException(CommandInfo command, ICommandContext context, Exception ex)

Parameters

command CommandInfo

The command information.

context ICommandContext

The context of the command.

ex Exception

The exception that interrupted the command execution.

Properties

Command

Gets the command that caused the exception.

public CommandInfo Command { get; }

Property Value

CommandInfo

Context

Gets the command context of the exception.

public ICommandContext Context { get; }

Property Value

ICommandContext