safing-portbase/database/query/condition-error.go
2019-06-27 13:29:56 +02:00

27 lines
415 B
Go

package query
import (
"github.com/safing/portbase/database/accessor"
)
type errorCondition struct {
err error
}
func newErrorCondition(err error) *errorCondition {
return &errorCondition{
err: err,
}
}
func (c *errorCondition) complies(acc accessor.Accessor) bool {
return false
}
func (c *errorCondition) check() error {
return c.err
}
func (c *errorCondition) string() string {
return "[ERROR]"
}