2015-11-19 19:50:10 +00:00
|
|
|
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 {
|
2015-11-19 19:50:10 +00:00
|
|
|
Field string
|
|
|
|
Value float64
|
|
|
|
}
|
|
|
|
|
2016-02-08 11:01:01 +00:00
|
|
|
func (err *UnsupportedValueError) Error() string {
|
2015-11-19 19:50:10 +00:00
|
|
|
return fmt.Sprintf(`field "%s" value: "%v" is unsupported`, err.Field, err.Value)
|
|
|
|
}
|