ResponseHelpersExceptionResponseBuilderT(AlpacaErrors, String, UInt32, UInt32) Method
This generates a Response of a given Type with a custom message and Error Code
Namespace: ASCOM.Common.HelpersAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static T ExceptionResponseBuilder<T>(
AlpacaErrors code,
string message,
uint clientTransactionID = 0,
uint serverTransactionID = 0
)
where T : new(), Response
Public Shared Function ExceptionResponseBuilder(Of T As {New, Response}) (
code As AlpacaErrors,
message As String,
Optional clientTransactionID As UInteger = 0,
Optional serverTransactionID As UInteger = 0
) As T
- code AlpacaErrors
- The Alpaca Error Code
- message String
- The message to use
- clientTransactionID UInt32 (Optional)
- The Client Transaction ID
- serverTransactionID UInt32 (Optional)
- The Server Transaction ID
- T
- The Type of Response to create and fill
TA populated exception
Supported in: 2.0