ExceptionHelpers Class
This contains helper methods and extensions to make handling Exceptions from Alpaca devices easier
Namespace: ASCOM.Common.HelpersAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static class ExceptionHelpers
<ExtensionAttribute>
Public NotInheritable Class ExceptionHelpers
- Inheritance
- Object ExceptionHelpers
| ErrorCode |
Extension method to get the Alpaca Error Code for an Exception. Returns UnspecifiedError if it cannot find a better code
|
| ErrorCodeFromException |
A method to get the Alpaca Error Code for an Exception. Returns UnspecifiedError if it cannot find a better code
|
| Exception |
This extension gets an ASCOM driver exception from a response
|
| ExceptionFromErrorCode |
Gets a driver exception from an error code and adds the message if available
|
| ExceptionFromResponse |
This method gets a given driver exception from a response
|
Supported in: 2.0