Class CommandException
The exception that is thrown if another exception occurs during a command execution.
public class CommandException : Exception, ISerializable
- Inheritance
-
objectCommandException
- 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
commandCommandInfoThe command information.
contextICommandContextThe context of the command.
exExceptionThe exception that interrupted the command execution.
Properties
Command
Gets the command that caused the exception.
public CommandInfo Command { get; }
Property Value
Context
Gets the command context of the exception.
public ICommandContext Context { get; }