github.com/status-im/status-go@v1.1.0/multiaccounts/errors/errors.go (about) 1 package errors 2 3 import ( 4 "github.com/pkg/errors" 5 ) 6 7 var ( 8 // ErrWalletNotUnique returned if another account has `wallet` field set to true. 9 ErrWalletNotUnique = errors.New("another account is set to be default wallet. disable it before using new") 10 // ErrChatNotUnique returned if another account has `chat` field set to true. 11 ErrChatNotUnique = errors.New("another account is set to be default chat. disable it before using new") 12 // ErrInvalidConfig returned if config isn't allowed 13 ErrInvalidConfig = errors.New("configuration value not allowed") 14 // ErrNewClockOlderThanCurrent returned if a given clock is older than the current clock 15 ErrNewClockOlderThanCurrent = errors.New("the new clock value is older than the current clock value") 16 // ErrUnrecognisedSyncSettingProtobufType returned if there is no handler or record of a given protobuf.SyncSetting_Type 17 ErrUnrecognisedSyncSettingProtobufType = errors.New("unrecognised protobuf.SyncSetting_Type") 18 ErrDbTransactionIsNil = errors.New("database transaction is nil") 19 )