laconicd-deprecated/types/errors.go
Federico Kunze c30205cae9
error migration (#254)
* migrate errors

* ante handler errors

* return err instead of panic
2020-04-16 11:47:39 -04:00

22 lines
676 B
Go

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"
)
var (
// ErrInvalidValue returns an error resulting from an invalid value.
ErrInvalidValue = sdkerrors.Register(RootCodespace, 1, "invalid value")
// ErrInvalidChainID returns an error resulting from an invalid chain ID.
ErrInvalidChainID = sdkerrors.Register(RootCodespace, 2, "invalid chain ID")
// ErrVMExecution returns an error resulting from an error in EVM execution.
ErrVMExecution = sdkerrors.Register(RootCodespace, 3, "error while executing evm transaction")
)