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.1.0+517b408ca408f7a19aace78c1509f524714a3a13
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