OperationCancelledException Class

This exception should be used to indicate that an in-progress operation has been cancelled.

Definition

Namespace: ASCOM
Assembly: ASCOM.Exceptions (in ASCOM.Exceptions.dll) Version: 6.0.0.0 (7.0.9999.9999)
C#
[SerializableAttribute]
[ComVisibleAttribute(true)]
[GuidAttribute("29E601B9-8197-41F1-812D-5956D7FACACC")]
public class OperationCancelledException : DriverException
Inheritance
Object    Exception    DriverException    OperationCancelledException

Remarks

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

Constructors

OperationCancelledException Initializes a new instance of the OperationCancelledException class using default error text and error codes.
OperationCancelledException(Exception) Initializes a new instance of the OperationCancelledException class with a provided inner exception with a caught (inner) exception.
OperationCancelledException(String) Initializes a new instance of the OperationCancelledException class with a provided message
OperationCancelledException(String, Exception) Initializes a new instance of the OperationCancelledException class with a provided message and inner 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