Initializes a new instance of the CommandException class.

Namespace:  Bespoke.Robotics.BrainStem.Exceptions
Assembly:  Bespoke.Robotics.BrainStem (in Bespoke.Robotics.BrainStem.dll) Version: 2.0.0.0 (2.0.0.0)

Syntax

C#
public CommandException(
	Packet..::.CommandCodeType commandCode,
	string message,
	Packet messagePacket
)
Visual Basic (Declaration)
Public Sub New ( _
	commandCode As Packet..::.CommandCodeType, _
	message As String, _
	messagePacket As Packet _
)
Visual C++
public:
CommandException(
	Packet..::.CommandCodeType commandCode, 
	String^ message, 
	Packet^ messagePacket
)

Parameters

commandCode
Type: Bespoke.Robotics.BrainStem..::.Packet..::.CommandCodeType
The associated command.
message
Type: System..::.String
The message that describes the error.
messagePacket
Type: Bespoke.Robotics.BrainStem..::.Packet
The associated message packet.

See Also