ExceptionHelpersErrorCodeFromException Method
A method to get the Alpaca Error Code for an Exception. Returns UnspecifiedError if it cannot find a better code
Namespace: ASCOM.Common.HelpersAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
public static AlpacaErrors ErrorCodeFromException(
Exception ex
)
Public Shared Function ErrorCodeFromException (
ex As Exception
) As AlpacaErrors
- ex Exception
- The exception to get the error code for
AlpacaErrorsThe best matching ErrorCode for the exception, UnspecifiedError if a better one cannot be found
Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10