mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 03:30:37 +00:00
19 lines
412 B
Go
19 lines
412 B
Go
|
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)
|
||
|
}
|