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.1.0+517b408ca408f7a19aace78c1509f524714a3a13
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