-
Notifications
You must be signed in to change notification settings - Fork 2.2k
/
errors.go
27 lines (25 loc) · 1.11 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package eventindexer
import "github.com/cyberhorsey/errors"
var (
ErrNoEthClient = errors.Validation.NewWithKeyAndDetail("ERR_NO_ETH_CLIENT", "EthClient is required")
ErrNoEventRepository = errors.Validation.NewWithKeyAndDetail(
"ERR_NO_EVENT_REPOSITORY",
"EventRepository is required",
)
ErrNoNFTBalanceRepository = errors.Validation.NewWithKeyAndDetail(
"ERR_NO_NFT_BALANCE_REPOSITORY",
"NFTBalanceRepository is required",
)
ErrNoStatRepository = errors.Validation.NewWithKeyAndDetail(
"ERR_NO_STAT_REPOSITORY",
"StatRepository is required",
)
ErrNoBlockRepository = errors.Validation.NewWithKeyAndDetail(
"ERR_NO_BLOCK_REPOSITORY",
"BlockRepository is required",
)
ErrNoCORSOrigins = errors.Validation.NewWithKeyAndDetail("ERR_NO_CORS_ORIGINS", "CORS Origins are required")
ErrNoRPCClient = errors.Validation.NewWithKeyAndDetail("ERR_NO_RPC_CLIENT", "RPCClient is required")
ErrInvalidMode = errors.Validation.NewWithKeyAndDetail("ERR_INVALID_MODE", "Mode not supported")
ErrInvalidURL = errors.Validation.NewWithKeyAndDetail("ERR_INVALID_URL", "The provided URL is invalid or unreachable")
)