ExceptionHelpers Class

This contains helper methods and extensions to make handling Exceptions from Alpaca devices easier

Definition

Namespace: ASCOM.Common.Helpers
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
C#
public static class ExceptionHelpers
Inheritance
Object    ExceptionHelpers

Methods

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

Version Information

.NET Standard

Supported in: 2.0

See Also