public HardwareErrorException(ErrorState error, object command) : base(string.Format("Error while sending command: {0} ({1})", command, error)) { this.error = error; }
public ErrorStateEventArgs(ErrorState error) { errState = error; exception = null; }
public HardwareErrorException(ErrorState error, Exception innerException = null) : base(string.Format("Hardware error occurred ({0})", error), innerException) { this.error = error; }