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.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
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