2018-08-09 01:06:34 +00:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
2020-04-16 15:47:39 +00:00
|
|
|
sdkerrors "github.com/cosmos/cosmos-sdk/types/errors"
|
2018-08-09 01:06:34 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
2020-04-16 15:47:39 +00:00
|
|
|
// RootCodespace is the codespace for all errors defined in this package
|
|
|
|
RootCodespace = "ethermint"
|
2018-08-09 01:06:34 +00:00
|
|
|
)
|
|
|
|
|
2020-04-16 15:47:39 +00:00
|
|
|
var (
|
|
|
|
// ErrInvalidValue returns an error resulting from an invalid value.
|
|
|
|
ErrInvalidValue = sdkerrors.Register(RootCodespace, 1, "invalid value")
|
2019-09-18 13:51:18 +00:00
|
|
|
|
2020-04-16 15:47:39 +00:00
|
|
|
// ErrInvalidChainID returns an error resulting from an invalid chain ID.
|
|
|
|
ErrInvalidChainID = sdkerrors.Register(RootCodespace, 2, "invalid chain ID")
|
2019-09-18 13:51:18 +00:00
|
|
|
|
2020-04-16 15:47:39 +00:00
|
|
|
// ErrVMExecution returns an error resulting from an error in EVM execution.
|
|
|
|
ErrVMExecution = sdkerrors.Register(RootCodespace, 3, "error while executing evm transaction")
|
|
|
|
)
|