ExceptionHelpersException Method
This extension gets an ASCOM driver exception from a response
Namespace: ASCOM.Common.HelpersAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static DriverException Exception(
this IResponse response
)
<ExtensionAttribute>
Public Shared Function Exception (
response As IResponse
) As DriverException
- response IResponse
- The Alpaca response
DriverExceptionNull if there is no exception, otherwise the ASCOM Exception for the error codeIn Visual Basic and C#, you can call this method as an instance method on any object of type
IResponse. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Supported in: 2.0