using System; using HidSharp; namespace LibreHardwareMonitor.Hardware.Psu; /// /// Represents an error that occurs during communication with a PSU controller over USB. /// /// The HID device associated with the communication error. Cannot be null. /// The error message that describes the nature of the communication failure. public class ProtocolError(HidDevice device, string message) : ApplicationException($"Error communicating with the PSU controller at {device.DevicePath}: {message}");