laconicd-deprecated/types/errors.go

30 lines
1.1 KiB
Go
Raw Normal View History

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"
)
2020-05-05 16:54:03 +00:00
// 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.
2020-05-05 16:54:03 +00:00
ErrInvalidValue = sdkerrors.Register(RootCodespace, 2, "invalid value")
// ErrInvalidChainID returns an error resulting from an invalid chain ID.
2020-05-05 16:54:03 +00:00
ErrInvalidChainID = sdkerrors.Register(RootCodespace, 3, "invalid chain ID")
// ErrVMExecution returns an error resulting from an error in EVM execution.
2020-05-05 16:54:03 +00:00
ErrVMExecution = sdkerrors.Register(RootCodespace, 4, "error while executing evm transaction")
2021-04-17 10:00:07 +00:00
// 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")
)