forked from evmos/ethermint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
26 lines (19 loc) · 955 Bytes
/
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
package types
import (
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
)
const (
// RootCodespace is the codespace for all errors defined in this package
RootCodespace = "ethermint"
)
// NOTE: We can't use 1 since that error code is reserved for internal errors.
var (
// ErrInvalidValue returns an error resulting from an invalid value.
ErrInvalidValue = sdkerrors.Register(RootCodespace, 2, "invalid value")
// ErrInvalidChainID returns an error resulting from an invalid chain ID.
ErrInvalidChainID = sdkerrors.Register(RootCodespace, 3, "invalid chain ID")
// ErrMarshalBigInt returns an error resulting from marshaling a big.Int to a string.
ErrMarshalBigInt = sdkerrors.Register(RootCodespace, 5, "cannot marshal big.Int to string")
// ErrUnmarshalBigInt returns an error resulting from unmarshaling a big.Int from a string.
ErrUnmarshalBigInt = sdkerrors.Register(RootCodespace, 6, "cannot unmarshal big.Int from string")
)