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: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
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: .NET Standard 2.0, .NET 8 .NET 9. .NET 10