forked from cosmos/cosmos-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
19 lines (17 loc) · 1.18 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package types
import (
sdkerrors "github.com/JaTochNietDan/cosmos-sdk/types/errors"
)
// IBC connection sentinel errors
var (
ErrConnectionExists = sdkerrors.Register(SubModuleName, 2, "connection already exists")
ErrConnectionNotFound = sdkerrors.Register(SubModuleName, 3, "connection not found")
ErrClientConnectionPathsNotFound = sdkerrors.Register(SubModuleName, 4, "light client connection paths not found")
ErrConnectionPath = sdkerrors.Register(SubModuleName, 5, "connection path is not associated to the given light client")
ErrInvalidConnectionState = sdkerrors.Register(SubModuleName, 6, "invalid connection state")
ErrInvalidCounterparty = sdkerrors.Register(SubModuleName, 7, "invalid counterparty connection")
ErrInvalidConnection = sdkerrors.Register(SubModuleName, 8, "invalid connection")
ErrInvalidVersion = sdkerrors.Register(SubModuleName, 9, "invalid connection version")
ErrVersionNegotiationFailed = sdkerrors.Register(SubModuleName, 10, "connection version negotiation failed")
ErrInvalidConnectionIdentifier = sdkerrors.Register(SubModuleName, 11, "invalid connection identifier")
)