forked from cerc-io/laconicd-deprecated
052134aff6
* refactor (errors) refactor errors import to use cosmossdk.io instead of cosmos-sdk/types/errors * refactor (errors) refactor errors import in ethsecp256k1 file * refactor (errors) add changes to changelog
27 lines
933 B
Go
27 lines
933 B
Go
package types
|
|
|
|
import (
|
|
errorsmod "cosmossdk.io/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 = errorsmod.Register(RootCodespace, 2, "invalid value")
|
|
|
|
// ErrInvalidChainID returns an error resulting from an invalid chain ID.
|
|
ErrInvalidChainID = errorsmod.Register(RootCodespace, 3, "invalid chain ID")
|
|
|
|
// ErrMarshalBigInt returns an error resulting from marshaling a big.Int to a string.
|
|
ErrMarshalBigInt = errorsmod.Register(RootCodespace, 5, "cannot marshal big.Int to string")
|
|
|
|
// ErrUnmarshalBigInt returns an error resulting from unmarshaling a big.Int from a string.
|
|
ErrUnmarshalBigInt = errorsmod.Register(RootCodespace, 6, "cannot unmarshal big.Int from string")
|
|
)
|