mirror of
https://github.com/safing/portbase
synced 2025-09-01 18:19:57 +00:00
23 lines
343 B
Go
23 lines
343 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
|
|
}
|
|
|
|
func (c *errorCondition) string() string {
|
|
return "[ERROR]"
|
|
}
|