ExceptionHelpersExceptionFromErrorCode Method
Gets a driver exception from an error code and adds the message if available
Namespace: ASCOM.Common.HelpersAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
public static DriverException ExceptionFromErrorCode(
AlpacaErrors code,
string message = ""
)
Public Shared Function ExceptionFromErrorCode (
code As AlpacaErrors,
Optional message As String = ""
) As DriverException
- code AlpacaErrors
- The Alpaca ErrorCode for the Exception
- message String (Optional)
- The optional message of the exception
DriverExceptionNull if there is no exception, otherwise the ASCOM Exception for the error code
Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10