2019-06-19 17:18:01 +00:00
|
|
|
package logfile
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
2019-08-20 19:37:45 +00:00
|
|
|
var (
|
|
|
|
errorLogfileCreate = errors.New("Can not create logfile")
|
|
|
|
errorLogfileDecode = errors.New("Can not decode from reader")
|
|
|
|
errorLogfileEncode = errors.New("Can not encode from writer")
|
|
|
|
errorLogfileMarshal = errors.New("Can not marshal values")
|
|
|
|
errorLogfileNotFound = errors.New("Can not find logfile")
|
|
|
|
errorLogfileOpen = errors.New("Can not open logfile")
|
|
|
|
errorLogfileRead = errors.New("Can not read from given reader")
|
|
|
|
errorLogfileUnmarshal = errors.New("Can not unmarshal values")
|
|
|
|
errorLogfileWrite = errors.New("Can not write with given writer")
|
2019-06-21 09:48:44 +00:00
|
|
|
|
2019-08-20 19:37:45 +00:00
|
|
|
errorParseFloat = errors.New("Can not parse float")
|
|
|
|
errorParseMeasurementUnit = errors.New("Can not parse mesaurement unit")
|
|
|
|
errorParseTime = errors.New("Can not parse time")
|
2019-06-21 09:48:44 +00:00
|
|
|
|
2019-08-20 19:37:45 +00:00
|
|
|
errorNoValidHumidityID = errors.New("No valid humidity id detected or available")
|
|
|
|
errorNoValidMesuredValue = errors.New("No mesured value detected or available")
|
|
|
|
errorNoValidSensorID = errors.New("No sensor id detected or available")
|
|
|
|
errorNoValidTemperatureID = errors.New("No valid temperature id detected or available")
|
|
|
|
errorNoValidTime = errors.New("No time detected or available")
|
|
|
|
errorNoValidTimePeriods = errors.New("No valid time periods")
|
2019-06-25 20:22:34 +00:00
|
|
|
|
2019-08-20 19:37:45 +00:00
|
|
|
errorTypeSwitch = errors.New("Can not detect type via type switch")
|
|
|
|
)
|