ErrorCodes Class
Click or drag to resize

ErrorCodes Class

Error numbers for use by drivers.
Inheritance Hierarchy
SystemObject
  ASCOMErrorCodes

Namespace:  ASCOM
Assembly:  ASCOM.Exceptions (in ASCOM.Exceptions.dll) Version: 6.0.0.0 (6.4.0.2624)
Syntax
public static class ErrorCodes

The ErrorCodes type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberActionNotImplementedException
Reserved error code (0x8004040C) to indicate that the requested action is not implemented in this driver.
Public fieldStatic memberDriverBase
The starting value (0x80040500) for driver-specific error numbers.
Public fieldStatic memberDriverMax
The maximum value (0x80040FFF) for driver-specific error numbers.
Public fieldStatic memberInvalidOperationException
Reserved error code (0x8004040B) to indicate that the requested operation can not be undertaken at this time.
Public fieldStatic memberInvalidValue
Reserved error code (0x80040401) for reporting an invalid value.
Public fieldStatic memberInvalidWhileParked
Reserved error code (0x80040408) used to indicate that the attempted operation is invalid because the mount is currently in a Parked state.
Public fieldStatic memberInvalidWhileSlaved
Reserved error code (0x80040409) used to indicate that the attempted operation is invalid because the mount is currently in a Slaved state.
Public fieldStatic memberNotConnected
Reserved error code (0x80040407) used to indicate that the communications channel is not connected.
Public fieldStatic memberNotImplemented
Reserved error number (0x80040400) for property or method not implemented.
Public fieldStatic memberNotInCacheException
Reserved error code (0x8004040D) to indicate that the requested item is not present in the ASCOM cache.
Public fieldStatic memberSettingsProviderError
Reserved error code (0x8004040A) related to settings.
Public fieldStatic memberUnspecifiedError
Reserved 'catch-all' error code (0x800404FF) used when nothing else was specified.
Public fieldStatic memberValueNotSet
Reserved error code (0x80040402) for reporting that a value has not been set.
Top
Remarks
The range of permitted values falls within the class FACILTY_ITF as defined by the operating system and COM. These values will never clash with COM, RPC, or OS error codes.

Driver developers may extend this class by making use of the partial keyword.

See Also