added InvalidErrorTypeException
implemented InvalidErrorTypeException in MeasurementDevice