ipld-eth-server/pkg/datastore/errors.go

20 lines
500 B
Go
Raw Normal View History

2019-03-27 04:05:30 +00:00
package datastore
import "fmt"
2019-03-27 17:26:04 +00:00
func ErrBlockDoesNotExist(blockNumber int64) error {
2019-03-27 04:05:30 +00:00
return fmt.Errorf("Block number %d does not exist", blockNumber)
}
2019-03-27 17:26:04 +00:00
func ErrContractDoesNotExist(contractHash string) error {
2019-03-27 04:05:30 +00:00
return fmt.Errorf("Contract %v does not exist", contractHash)
}
2019-03-27 17:26:04 +00:00
func ErrFilterDoesNotExist(name string) error {
2019-03-27 04:05:30 +00:00
return fmt.Errorf("filter %s does not exist", name)
}
2019-03-27 17:26:04 +00:00
func ErrReceiptDoesNotExist(txHash string) error {
2019-03-27 04:05:30 +00:00
return fmt.Errorf("Receipt for tx: %v does not exist", txHash)
}