Enum dsnp_graph_config::errors::DsnpGraphError
source · #[repr(u8)]pub enum DsnpGraphError {
Show 42 variants
AvroError(Error),
DuplicateConnectionDetected,
CallToPridsInPublicGraph,
CallToPrivateFriendsInPublicGraph,
ConnectionAlreadyExists(DsnpUserId, DsnpUserId),
ConnectionDoesNotExist(DsnpUserId, DsnpUserId),
ConnectionNotFound,
DecompressError(String),
DecryptionError(String),
DuplicateUpdateEvents,
EventExists,
EncryptionError(String),
FailedToRetrieveGraphPage,
FailedtoReadLock(String),
FailedtoWriteLock(String),
FFIError(String),
GraphIsFull,
InvalidDsnpUserId(DsnpUserId),
InvalidSchemaId(SchemaId),
InvalidPageId(PageId),
InvalidPrivateSchemaId,
InvalidPublicKey,
InvalidSecretKey,
InvalidInput(String),
ImportedKeyNotFound(DsnpUserId, String),
IncorrectConnectionType(String),
IncompatiblePrivacyTypeForBlobExport,
KeyDerivationError(String),
NoPrisImportedForUser(DsnpUserId),
NoPublicKeyFoundForUser(DsnpUserId),
NoResolvedActiveKeyFound,
NewPageForExistingPageId,
PageAggressivelyFull,
PageTriviallyFull,
PublicKeyAlreadyExists(String),
PublicKeyNotCompatibleWithSecretKey,
PridsLenShouldBeEqualToConnectionsLen(PageId, usize, usize),
UnsupportedSchema(SchemaId),
Unknown(Error),
UserGraphNotImported(DsnpUserId),
UnableToDecryptGraphChunkWithAnyKey,
UnsupportedConnectionTypeForConfig(ConnectionType),
}
Expand description
Graph SDK errors
Variants§
AvroError(Error)
Avro error
DuplicateConnectionDetected
Duplicate connection detected
CallToPridsInPublicGraph
Calling apply_prids in non private friendship graph!
CallToPrivateFriendsInPublicGraph
Calling private friends in non private graph
ConnectionAlreadyExists(DsnpUserId, DsnpUserId)
Connection already exists
ConnectionDoesNotExist(DsnpUserId, DsnpUserId)
Connection does not exist
ConnectionNotFound
Connection not found
DecompressError(String)
Failed to decompress
DecryptionError(String)
Failed to decrypt
DuplicateUpdateEvents
Duplicate update events detected
EventExists
Event exists
EncryptionError(String)
Failed to encrypt
FailedToRetrieveGraphPage
Failed to retrieve graph page
FailedtoReadLock(String)
Failed to acquire read lock on state manager
FailedtoWriteLock(String)
Failed to acquire write lock on state manager
FFIError(String)
FFI error
GraphIsFull
Graph is full
InvalidDsnpUserId(DsnpUserId)
Invalid DSNP user id
InvalidSchemaId(SchemaId)
Invalid schema id
InvalidPageId(PageId)
Invalid page id
InvalidPrivateSchemaId
Invalid private schema id
InvalidPublicKey
Invalid public key
InvalidSecretKey
Invalid secret key
InvalidInput(String)
Invalid input
ImportedKeyNotFound(DsnpUserId, String)
Imported key not found
IncorrectConnectionType(String)
Incorrect connection type
IncompatiblePrivacyTypeForBlobExport
Incompatible privacy type for blob export
KeyDerivationError(String)
Key derivation error
NoPrisImportedForUser(DsnpUserId)
No pris imported for user
NoPublicKeyFoundForUser(DsnpUserId)
No public key found for user
NoResolvedActiveKeyFound
No resolved active key found
NewPageForExistingPageId
New page for existing page id
PageAggressivelyFull
Page is aggressively full
PageTriviallyFull
Page is trivially full
PublicKeyAlreadyExists(String)
Public key already exists
PublicKeyNotCompatibleWithSecretKey
Public key not compatible with secret key
PridsLenShouldBeEqualToConnectionsLen(PageId, usize, usize)
Prids len should be equal to connections len
UnsupportedSchema(SchemaId)
Unsupported schema
Unknown(Error)
Unknown error
UserGraphNotImported(DsnpUserId)
User graph for user is not imported
UnableToDecryptGraphChunkWithAnyKey
Unable to decrypt private graph with any of the imported keys
UnsupportedConnectionTypeForConfig(ConnectionType)
Unsupported connection type
Implementations§
source§impl DsnpGraphError
impl DsnpGraphError
sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Returns the error code for the error