public DockingStationError(string description, DockingStationErrorLevel errorLevel, string instrumentSerialNumber, string errorCode) { Description = description; ErrorLevel = errorLevel; InstrumentSerialNumber = instrumentSerialNumber; ErrorCode = errorCode; }
private DockingStationAction ExamineErrors(DockingStationEvent dsEvent, InetUploader inet) { DockingStationErrorLevel highestError = DockingStationErrorLevel.None; DockingStationAction dsAction = null; foreach (DockingStationError error in dsEvent.Errors) { highestError = (DockingStationErrorLevel)Math.Max((int)error.ErrorLevel, (int)highestError); } if (dsAction != null) { return(dsAction); } if (highestError >= DockingStationErrorLevel.Error) { dsAction = new UnavailableAction(); Log.Debug(string.Format("{0}Returning {1}", Name, dsAction.Name)); return(dsAction); } return(null); }
public DockingStationError(string description, DockingStationErrorLevel errorLevel) { Description = description; ErrorLevel = errorLevel; }
public DockingStationError(Exception ex, DockingStationErrorLevel errorLevel, string instrumentSerialNumber) { Description = ex.ToString(); ErrorLevel = errorLevel; InstrumentSerialNumber = instrumentSerialNumber; }
public DockingStationError(Exception ex, DockingStationErrorLevel errorLevel) { Description = ex.ToString(); ErrorLevel = errorLevel; }