CommandException

Thown to report error for command operations.

Namespace:
Inetdev.CLI
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
System.ApplicationException

Constructors

CommandException

Initializes a new instance of CommandException.

Signature:
public Void CommandException(msg)
Parameters
Name Type Summary
msg String A message.

CommandException

Initializes a new instance of CommandException.

Signature:
public Void CommandException(msg, src)
Parameters
Name Type Summary
msg String A message.
src String Source code reference.

CommandException

Initializes a new instance of CommandException.

Signature:
public Void CommandException(msg, src, inner)
Parameters
Name Type Summary
msg String A message.
src String Source code reference.
inner Exception Original exception catched.

Properties

Command

The ICommand (if known) that causes the error.

Signature:
public ICommand Command { get; set; }

Errors

A collection of errors related to the command error.

Signature:
public List<CommandException> Errors { get; set; }

Methods

ToString

Returns a textual representation of the exception.

Signature:
public String ToString()