safing-portbase/database/query/condition-error.go

19 lines
279 B
Go

package query
type errorCondition struct {
err error
}
func newErrorCondition(err error) *errorCondition {
return &errorCondition{
err: err,
}
}
func (c *errorCondition) complies(f Fetcher) bool {
return false
}
func (c *errorCondition) check() error {
return c.err
}