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.2.0.2774)
Syntax
public static class ErrorCodes

The ErrorCodes type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberActionNotImplementedException
Error code to indicate that the requested operation can not be undertaken at this time.
Public fieldStatic memberDriverBase
The starting value for driver-specific error numbers.
Public fieldStatic memberDriverMax
Maximum value for driver-specific error numbers.
Public fieldStatic memberInvalidOperationException
Error code to indicate that the requested operation can not be undertaken at this time.
Public fieldStatic memberInvalidValue
Reserved error number for reporting an invalid value.
Public fieldStatic memberInvalidWhileParked
Error code used to indicate that the attempted operation is invalid because the mount is currently in a Parked state.
Public fieldStatic memberInvalidWhileSlaved
Error code used to indicate that the attempted operation is invalid because the mount is currently in a Slaved state.
Public fieldStatic memberNotConnected
Error code used to indicate that the communications channel is not connected.
Public fieldStatic memberNotImplemented
Reserved error number for property or method not implemented.
Public fieldStatic memberSettingsProviderError
An error related to settings.
Public fieldStatic memberUnspecifiedError
A 'catch-all' error code used when nothing else was specified.
Public fieldStatic memberValueNotSet
Reserved error number 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