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: 6.0.0.0 (7.0.9999.9999)
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
[GuidAttribute("C22D9A81-63FA-4AC3-AD64-77B77D3CEB2B")]
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)

Extension Methods

ErrorCode Extension method to get the Alpaca Error Code for an Exception. Returns UnspecifiedError if it cannot find a better code
(Defined by ExceptionHelpers)

Version Information

.NET Standard

Supported in: 2.0

See Also