influxdb/services/graphite/errors.go

15 lines
317 B
Go
Raw Normal View History

package graphite
import "fmt"
2016-02-08 11:01:01 +00:00
// An UnsupportedValueError is returned when a parsed value is not
// supported.
type UnsupportedValueError struct {
Field string
Value float64
}
2016-02-08 11:01:01 +00:00
func (err *UnsupportedValueError) Error() string {
return fmt.Sprintf(`field "%s" value: "%v" is unsupported`, err.Field, err.Value)
}