Documentation ¶
Overview ¶
Package errcode contains the list of Berty error codes.
Index ¶
- Variables
- func Has(err error, code WithCode) bool
- func Is(err error, code WithCode) bool
- type ErrCode
- func (e ErrCode) Code() ErrCode
- func (ErrCode) Descriptor() protoreflect.EnumDescriptor
- func (x ErrCode) Enum() *ErrCode
- func (ErrCode) EnumDescriptor() ([]byte, []int)deprecated
- func (e ErrCode) Error() string
- func (e ErrCode) GRPCStatus() *status.Status
- func (x ErrCode) Number() protoreflect.EnumNumber
- func (x ErrCode) String() string
- func (ErrCode) Type() protoreflect.EnumType
- func (e ErrCode) Wrap(inner error) WithCode
- type ErrDetails
- type WithCode
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCode_name = map[int32]string{}/* 125 elements not displayed */ ErrCode_value = map[string]int32{}/* 125 elements not displayed */ )
Enum value maps for ErrCode.
View Source
var File_berty_errcode_proto protoreflect.FileDescriptor
Functions ¶
Types ¶
type ErrCode ¶
type ErrCode int32
const ( ErrCode_Undefined ErrCode = 0 // default value, should never be set manually ErrCode_TODO ErrCode = 666 // indicates that you plan to create an error later ErrCode_ErrNotImplemented ErrCode = 777 // indicates that a method is not implemented yet ErrCode_ErrInternal ErrCode = 888 // indicates an unknown error (without Code), i.e. in gRPC ErrCode_ErrInvalidInput ErrCode = 100 ErrCode_ErrInvalidRange ErrCode = 101 ErrCode_ErrMissingInput ErrCode = 102 ErrCode_ErrSerialization ErrCode = 103 ErrCode_ErrDeserialization ErrCode = 104 ErrCode_ErrStreamRead ErrCode = 105 ErrCode_ErrStreamWrite ErrCode = 106 ErrCode_ErrStreamTransform ErrCode = 110 ErrCode_ErrStreamSendAndClose ErrCode = 111 ErrCode_ErrStreamHeaderWrite ErrCode = 112 ErrCode_ErrStreamHeaderRead ErrCode = 115 ErrCode_ErrStreamSink ErrCode = 113 ErrCode_ErrStreamCloseAndRecv ErrCode = 114 ErrCode_ErrMissingMapKey ErrCode = 107 ErrCode_ErrDBWrite ErrCode = 108 ErrCode_ErrDBRead ErrCode = 109 ErrCode_ErrDBDestroy ErrCode = 120 ErrCode_ErrDBMigrate ErrCode = 121 ErrCode_ErrDBReplay ErrCode = 122 ErrCode_ErrDBRestore ErrCode = 123 ErrCode_ErrDBOpen ErrCode = 124 ErrCode_ErrDBClose ErrCode = 125 ErrCode_ErrCryptoRandomGeneration ErrCode = 200 ErrCode_ErrCryptoKeyGeneration ErrCode = 201 ErrCode_ErrCryptoNonceGeneration ErrCode = 202 ErrCode_ErrCryptoSignature ErrCode = 203 ErrCode_ErrCryptoSignatureVerification ErrCode = 204 ErrCode_ErrCryptoDecrypt ErrCode = 205 ErrCode_ErrCryptoDecryptPayload ErrCode = 206 ErrCode_ErrCryptoEncrypt ErrCode = 207 ErrCode_ErrCryptoKeyConversion ErrCode = 208 ErrCode_ErrCryptoCipherInit ErrCode = 209 ErrCode_ErrCryptoKeyDerivation ErrCode = 210 ErrCode_ErrMap ErrCode = 300 ErrCode_ErrForEach ErrCode = 301 ErrCode_ErrKeystoreGet ErrCode = 400 ErrCode_ErrKeystorePut ErrCode = 401 ErrCode_ErrNotFound ErrCode = 404 // generic ErrCode_ErrIPFSAdd ErrCode = 1050 ErrCode_ErrIPFSGet ErrCode = 1051 ErrCode_ErrIPFSInit ErrCode = 1052 ErrCode_ErrIPFSSetupConfig ErrCode = 1053 ErrCode_ErrIPFSSetupRepo ErrCode = 1054 ErrCode_ErrIPFSSetupHost ErrCode = 1055 // Event errors ErrCode_ErrEventListMetadata ErrCode = 1400 ErrCode_ErrEventListMessage ErrCode = 1401 ErrCode_ErrBridgeInterrupted ErrCode = 1600 ErrCode_ErrBridgeNotRunning ErrCode = 1601 ErrCode_ErrMessengerInvalidDeepLink ErrCode = 2000 ErrCode_ErrMessengerDeepLinkRequiresPassphrase ErrCode = 2001 ErrCode_ErrMessengerDeepLinkInvalidPassphrase ErrCode = 2002 ErrCode_ErrMessengerStreamEvent ErrCode = 2003 ErrCode_ErrMessengerContactMetadataUnmarshal ErrCode = 2004 ErrCode_ErrDBEntryAlreadyExists ErrCode = 2100 ErrCode_ErrDBAddConversation ErrCode = 2101 ErrCode_ErrDBAddContactRequestOutgoingSent ErrCode = 2102 ErrCode_ErrDBAddContactRequestOutgoingEnqueud ErrCode = 2103 ErrCode_ErrDBAddContactRequestIncomingReceived ErrCode = 2104 ErrCode_ErrDBAddContactRequestIncomingAccepted ErrCode = 2105 ErrCode_ErrDBAddGroupMemberDeviceAdded ErrCode = 2106 ErrCode_ErrDBMultipleRecords ErrCode = 2107 ErrCode_ErrReplayProcessGroupMetadata ErrCode = 2200 ErrCode_ErrReplayProcessGroupMessage ErrCode = 2201 ErrCode_ErrAttachmentPrepare ErrCode = 2300 ErrCode_ErrAttachmentRetrieve ErrCode = 2301 ErrCode_ErrProtocolSend ErrCode = 2302 ErrCode_ErrProtocolEventUnmarshal ErrCode = 2303 ErrCode_ErrProtocolGetGroupInfo ErrCode = 2304 // Test Error ErrCode_ErrTestEcho ErrCode = 2401 ErrCode_ErrTestEchoRecv ErrCode = 2402 ErrCode_ErrTestEchoSend ErrCode = 2403 ErrCode_ErrServicesAuth ErrCode = 4000 ErrCode_ErrServicesAuthNotInitialized ErrCode = 4001 ErrCode_ErrServicesAuthWrongState ErrCode = 4002 ErrCode_ErrServicesAuthInvalidResponse ErrCode = 4003 ErrCode_ErrServicesAuthServer ErrCode = 4004 ErrCode_ErrServicesAuthCodeChallenge ErrCode = 4005 ErrCode_ErrServicesAuthServiceInvalidToken ErrCode = 4006 ErrCode_ErrServicesAuthServiceNotSupported ErrCode = 4007 ErrCode_ErrServicesAuthUnknownToken ErrCode = 4008 ErrCode_ErrServicesAuthInvalidURL ErrCode = 4009 ErrCode_ErrCLINoTermcaps ErrCode = 3001 ErrCode_ErrServicesDirectory ErrCode = 4200 ErrCode_ErrServicesDirectoryInvalidVerifiedCredentialSubject ErrCode = 4201 ErrCode_ErrServicesDirectoryExistingRecordNotFound ErrCode = 4202 ErrCode_ErrServicesDirectoryRecordLockedAndCantBeReplaced ErrCode = 4203 ErrCode_ErrServicesDirectoryExplicitReplaceFlagRequired ErrCode = 4204 ErrCode_ErrServicesDirectoryInvalidVerifiedCredential ErrCode = 4205 ErrCode_ErrServicesDirectoryExpiredVerifiedCredential ErrCode = 4206 ErrCode_ErrServicesDirectoryInvalidVerifiedCredentialID ErrCode = 4207 ErrCode_ErrBertyAccount ErrCode = 5000 ErrCode_ErrBertyAccountNoIDSpecified ErrCode = 5001 ErrCode_ErrBertyAccountAlreadyOpened ErrCode = 5002 ErrCode_ErrBertyAccountInvalidIDFormat ErrCode = 5003 ErrCode_ErrBertyAccountLoggerDecorator ErrCode = 5004 ErrCode_ErrBertyAccountGRPCClient ErrCode = 5005 ErrCode_ErrBertyAccountOpenAccount ErrCode = 5006 ErrCode_ErrBertyAccountDataNotFound ErrCode = 5007 ErrCode_ErrBertyAccountMetadataUpdate ErrCode = 5008 ErrCode_ErrBertyAccountManagerOpen ErrCode = 5009 ErrCode_ErrBertyAccountManagerClose ErrCode = 5010 ErrCode_ErrBertyAccountInvalidCLIArgs ErrCode = 5011 ErrCode_ErrBertyAccountFSError ErrCode = 5012 ErrCode_ErrBertyAccountAlreadyExists ErrCode = 5013 ErrCode_ErrBertyAccountNoBackupSpecified ErrCode = 5014 ErrCode_ErrBertyAccountIDGenFailed ErrCode = 5015 ErrCode_ErrBertyAccountCreationFailed ErrCode = 5016 ErrCode_ErrBertyAccountUpdateFailed ErrCode = 5017 ErrCode_ErrAppStorageNotSupported ErrCode = 5018 ErrCode_ErrPush ErrCode = 6000 ErrCode_ErrPushWrongAccount ErrCode = 6001 ErrCode_ErrPushUnableToDecrypt ErrCode = 6002 ErrCode_ErrPushInvalidPayload ErrCode = 6003 ErrCode_ErrPushInvalidServerConfig ErrCode = 6004 ErrCode_ErrPushMissingBundleID ErrCode = 6005 ErrCode_ErrPushUnknownDestination ErrCode = 6006 ErrCode_ErrPushProvider ErrCode = 6007 ErrCode_ErrPushUnknownProvider ErrCode = 6008 ErrCode_ErrNoProvidersConfigured ErrCode = 6009 ErrCode_ErrInvalidPrivateKey ErrCode = 6010 ErrCode_ErrPushServerNotFound ErrCode = 6011 )
func (ErrCode) Descriptor ¶ added in v2.470.4
func (ErrCode) Descriptor() protoreflect.EnumDescriptor
func (ErrCode) EnumDescriptor
deprecated
func (ErrCode) GRPCStatus ¶ added in v2.115.0
func (ErrCode) Number ¶ added in v2.470.4
func (x ErrCode) Number() protoreflect.EnumNumber
func (ErrCode) Type ¶ added in v2.470.4
func (ErrCode) Type() protoreflect.EnumType
type ErrDetails ¶ added in v2.115.0
type ErrDetails struct { Codes []ErrCode `protobuf:"varint,1,rep,packed,name=codes,proto3,enum=berty.errcode.ErrCode" json:"codes,omitempty"` // contains filtered or unexported fields }
func (*ErrDetails) Descriptor
deprecated
added in
v2.115.0
func (*ErrDetails) Descriptor() ([]byte, []int)
Deprecated: Use ErrDetails.ProtoReflect.Descriptor instead.
func (*ErrDetails) GetCodes ¶ added in v2.115.0
func (x *ErrDetails) GetCodes() []ErrCode
func (*ErrDetails) ProtoMessage ¶ added in v2.115.0
func (*ErrDetails) ProtoMessage()
func (*ErrDetails) ProtoReflect ¶ added in v2.470.4
func (x *ErrDetails) ProtoReflect() protoreflect.Message
func (*ErrDetails) Reset ¶ added in v2.115.0
func (x *ErrDetails) Reset()
func (*ErrDetails) String ¶ added in v2.115.0
func (x *ErrDetails) String() string
Click to show internal directories.
Click to hide internal directories.