namespace ZB.MOM.WW.OtOpcUa.Driver.Modbus; /// /// The driver refused a write BEFORE anything reached the wire (wrong array length, a payload over /// MaxRegistersPerWrite, an unsupported shape). Carries the OPC UA status the write returns; /// it never touches driver health — nothing was sent. /// public sealed class ModbusWriteRefusedException : Exception { /// Initializes a new instance of the class. /// The OPC UA status the write returns. /// A human-readable description. public ModbusWriteRefusedException(uint statusCode, string message) : base(message) { StatusCode = statusCode; } /// Gets the OPC UA status the write returns. public uint StatusCode { get; } }