25 lines
588 B
C#
25 lines
588 B
C#
using MxGateway.Contracts.Proto;
|
|
|
|
namespace MxGateway.Client;
|
|
|
|
public sealed class MxAccessException : MxGatewayCommandException
|
|
{
|
|
public MxAccessException(
|
|
string message,
|
|
MxCommandReply reply,
|
|
Exception? innerException = null)
|
|
: base(
|
|
message,
|
|
reply.SessionId,
|
|
reply.CorrelationId,
|
|
reply.ProtocolStatus,
|
|
reply.HasHresult ? reply.Hresult : null,
|
|
reply.Statuses.ToArray(),
|
|
innerException)
|
|
{
|
|
Reply = reply;
|
|
}
|
|
|
|
public MxCommandReply Reply { get; }
|
|
}
|