github.com/influxdata/influxdb/v2@v2.7.6/influxql/errors.go (about) 1 package influxql 2 3 // NotImplementedError is returned when a specific operation is unavailable. 4 type NotImplementedError struct { 5 Op string // Op is the name of the unimplemented operation 6 } 7 8 func (e *NotImplementedError) Error() string { 9 return "not implemented: " + e.Op 10 } 11 12 // ErrNotImplemented creates a NotImplementedError specifying op is unavailable. 13 func ErrNotImplemented(op string) error { 14 return &NotImplementedError{Op: op} 15 }