Thetype exposes the following members.
Default public constructor for NotConnectedException takes no parameters.
Initializes a new instance of theclass from another exception.
Initializes a new instance of theclass with a non-default error message.
Initializes a new instance of theclass based on another exception.
Gets a collection of key/value pairs that provide additional user-defined information about the exception.(Inherited from .)
Gets or sets a link to the help file associated with this exception.(Inherited from .)
Gets or sets HRESULT, a coded numerical value that is assigned to a specific exception.(Inherited from .)
Gets the(Inherited from instance that caused the current exception. .)
Gets a message that describes the current exception.(Inherited from .)
The COM error code for this exception (hex 80040400 - 800404FF)(Inherited from DriverException.)
Gets or sets the name of the application or the object that causes the error.(Inherited from .)
Gets a string representation of the immediate frames on the call stack.(Inherited from .)
Gets the method that throws the current exception.(Inherited from .)
When overridden in a derived class, returns the(Inherited from that is the root cause of one or more subsequent exceptions. .)
When overridden in a derived class, sets the(Inherited from with information about the exception. .)
Gets the runtime type of the current instance.(Inherited from .)
Creates and returns a string representation of the current exception.(Inherited from .)
The exception is intended to be used for "logical" errors e.g. trying to use a command when the current configuration of the device does not allow it rather than for device errors such as a communications error.
Its the error to use when the client attempts something, which at another time would be sensible, but which is not sensible right now. If you expect the condition causing the issue to be short lived, you may choose to stall the request until the condition is cleared rather than throwing this exception. Clearly, that is a judgement that you can only make given a specific scenario.
If you need to throw this error as a COM exception use the error number: 0x8004040B.