mirror of
https://github.com/safing/portbase
synced 2025-04-19 17:09:09 +00:00
27 lines
415 B
Go
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]"
|
|
}
|