ResponseHelpers Class

This class contains helper functions to make responding from the server easier.

Definition

Namespace: ASCOM.Common.Helpers
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.1.0+517b408ca408f7a19aace78c1509f524714a3a13
C#
public class ResponseHelpers
Inheritance
Object    ResponseHelpers

Constructors

ResponseHelpersInitializes a new instance of the ResponseHelpers class

Methods

ExceptionResponseBuilderT(Exception, UInt32, UInt32) This generates a Response of a given Type with the Error Code and Message filled in from the passed Exception
ExceptionResponseBuilderT(AlpacaErrors, String, UInt32, UInt32) This generates a Response of a given Type with a custom message and Error Code
ExceptionResponseBuilderT(Exception, String, UInt32, UInt32) This generates a Response of a given Type with the Error Code filled in from the passed Exception and a custom message

Version Information

Supported in: .NET Standard 2.0, .NET 8 .NET 9. .NET 10

See Also