ipld-eth-server/pkg/eth/errors.go
2023-01-12 20:58:42 -06:00

18 lines
312 B
Go

package eth
import "fmt"
type RequiresProxyError struct {
method string
}
var _ error = RequiresProxyError{}
func (e RequiresProxyError) SetMethod(method string) {
e.method = method
}
func (e RequiresProxyError) Error() string {
return fmt.Sprintf("%s requires a configured proxy geth node", e.method)
}