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: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
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: 2.0