github.com/safing/portbase@v0.19.5/database/query/condition-error.go (about) 1 package query 2 3 import ( 4 "github.com/safing/portbase/database/accessor" 5 ) 6 7 type errorCondition struct { 8 err error 9 } 10 11 func newErrorCondition(err error) *errorCondition { 12 return &errorCondition{ 13 err: err, 14 } 15 } 16 17 func (c *errorCondition) complies(acc accessor.Accessor) bool { 18 return false 19 } 20 21 func (c *errorCondition) check() error { 22 return c.err 23 } 24 25 func (c *errorCondition) string() string { 26 return "[ERROR]" 27 }