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: 3.0.0-rc.1+86c25ce733aebb4d8b1b8a62e84770ea5e972bea
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

.NET Standard

Supported in: 2.0

See Also