erigon-pulse/spectest/errors.go

19 lines
412 B
Go
Raw Permalink Normal View History

package spectest
import (
"errors"
"fmt"
)
var ErrorHandlerNotFound = errors.New("handler not found")
func ErrHandlerNotFound(handler string) error {
return fmt.Errorf("%w: %s", ErrorHandlerNotFound, handler)
}
var ErrorHandlerNotImplemented = errors.New("handler not implemented")
func ErrHandlerNotImplemented(handler string) error {
return fmt.Errorf("%w: %s", ErrorHandlerNotImplemented, handler)
}