using MxGateway.Contracts.Proto; namespace MxGateway.Client; /// Exception thrown when a gateway command fails due to an unclassified protocol error. public class MxGatewayCommandException : MxGatewayException { /// Initializes a new instance with the given details. /// The error message describing the command failure. /// The session ID, if available. /// The correlation ID for tracing, if available. /// The protocol status details, if available. /// The HResult code, if available. /// The MXAccess statuses, if available. /// The underlying exception, if any. public MxGatewayCommandException( string message, string? sessionId = null, string? correlationId = null, ProtocolStatus? protocolStatus = null, int? hResult = null, IReadOnlyList? statuses = null, Exception? innerException = null) : base( message, sessionId, correlationId, protocolStatus, hResult, statuses ?? [], innerException) { } }