ResponseHelpersExceptionResponseBuilderT(Exception, String, UInt32, UInt32) Method
This generates a Response of a given Type with the Error Code filled in from the passed Exception and a custom message
Namespace: ASCOM.Common.HelpersAssembly: ASCOM.Common (in ASCOM.Common.dll) Version: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
public static T ExceptionResponseBuilder<T>(
Exception ex,
string message,
uint clientTransactionID = 0,
uint serverTransactionID = 0
)
where T : new(), Response
Public Shared Function ExceptionResponseBuilder(Of T As {New, Response}) (
ex As Exception,
message As String,
Optional clientTransactionID As UInteger = 0,
Optional serverTransactionID As UInteger = 0
) As T
- ex Exception
- The Exception to use
- 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