AlpacaErrors Enumeration

Error numbers for use by Alpaca applications and drivers in the range 0x400 to 0xFFF.

Definition

Namespace: ASCOM.Common.Alpaca
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public enum AlpacaErrors

Remarks

The range 0x400 to 0x4FF is reserved for ASCOM Alpaca defined exceptions and the range 0x500 to 0xFFF is available for user defined application or driver errors

Members

AlpacaNoError0 A value of 0 indicates that the message does not have an error
AlpacaErrorCodeBase1,024 Start of the Alpaca error code range 0x400 to 0xFFF
NotImplemented1,024 Reserved error code (0x400) for property or method not implemented.
InvalidValue1,025 Reserved error code (0x401) for reporting an invalid value.
ValueNotSet1,026 Reserved error code (0x402) for reporting that a value has not been set.
NotConnected1,031 Reserved error code (0x407) used to indicate that the communications channel is not connected.
InvalidWhileParked1,032 Reserved error code (0x408) used to indicate that the attempted operation is invalid because the mount is currently in a Parked state.
InvalidWhileSlaved1,033 Reserved error code (0x409) used to indicate that the attempted operation is invalid because the mount is currently in a Slaved state.
InvalidOperationException1,035 Reserved error code (0x40B) to indicate that the requested operation can not be undertaken at this time.
ActionNotImplementedException1,036 Reserved error code (0x40C) to indicate that the requested action is not implemented in this driver.
OperationCancelledException1,038 Reserved error code (0x40E) to indicate that an in-progress asynchronous operation has been cancelled.
UnspecifiedError1,279 Reserved 'catch-all' error code (0x4FF) used when nothing else was specified.
DriverBase1,280 The starting value (0x500) for driver/application specific error numbers.
AlpacaErrorCodeMax4,095 End of Alpaca error code range 0x400 to 0xFFF
DriverMax4,095 The maximum value (0xFFF) for driver/application specific error numbers.

Version Information

.NET Standard

Supported in: 2.0

See Also