AlpacaToolsErrorMessageToByteArray Method

Convert an Alpaca error number and message to a byte array for transfer to a client.

Definition

Namespace: ASCOM.Common.Alpaca
Assembly: ASCOM.Common (in ASCOM.Common.dll) Version: 4.0.0+77e18c564bf9ecdb0ef30166e894390d1b7d077c
C#
public static byte[] ErrorMessageToByteArray(
	int metadataVersion,
	uint clientTransactionID,
	uint serverTransactionID,
	AlpacaErrors alpacaErrorNumber,
	string errorMessage
)

Parameters

metadataVersion  Int32
Required metadata version - Currently 1
clientTransactionID  UInt32
Client's transaction ID.
serverTransactionID  UInt32
Device's transaction ID.r
alpacaErrorNumber  AlpacaErrors
Alpaca error number
errorMessage  String
Error message to encode.

Return Value

Byte
The error message as a byte array

Exceptions

Version Information

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

See Also