NotConnectedException Class

This exception should be raised when an operation is attempted that requires communication with the device, but the device is disconnected.

Definition

Namespace: ASCOM
Assembly: ASCOM.Exceptions (in ASCOM.Exceptions.dll) Version: 7.1.3+4851.c5da65c2b
C#
[SerializableAttribute]
public class NotConnectedException : DriverException
Inheritance
Object    Exception    DriverException    NotConnectedException

Remarks

If you need to throw this error as a COM exception use the error number: 0x80040400.

Constructors

NotConnectedException Default public constructor for NotConnectedException takes no parameters.
NotConnectedException(Exception) Initializes a new instance of the NotConnectedException class from another exception.
NotConnectedException(String) Initializes a new instance of the NotConnectedException class with a non-default error message.
NotConnectedException(String, Exception) Initializes a new instance of the NotConnectedException class based on another exception.

Properties

Number The COM error code for this exception (hex 80040400 - 800404FF)
(Inherited from DriverException)

See Also