pub enum CloudError {
Show 34 variants
ClientInit(String),
ProviderNotEnabled(String),
SecretFetch {
name: String,
error: String,
},
SecretCreate {
name: String,
error: String,
},
SecretUpdate {
name: String,
error: String,
},
SecretDelete {
name: String,
error: String,
},
SecretFormat {
name: String,
reason: String,
},
SecretList(String),
SecretNotFound(String),
StorageFetch {
key: String,
error: String,
},
StorageRead {
key: String,
error: String,
},
StoragePut {
key: String,
error: String,
},
StorageDelete {
key: String,
error: String,
},
StorageList {
prefix: String,
error: String,
},
StorageObjectNotFound(String),
MetricsExport(String),
LogWrite(String),
LogExport(String),
TraceSpanCreate(String),
TraceExport(String),
AuthFailed(String),
AuthorizationFailed(String),
InvalidCredentials(String),
ConfigError(String),
MissingConfig(String),
InvalidConfig {
key: String,
reason: String,
},
Network(String),
Connection(String),
Timeout(String),
Authentication(String),
Serialization(String),
Deserialization(String),
OperationFailed(String),
Internal(String),
}Expand description
Unified cloud error type for all cloud operations.
Variants§
ClientInit(String)
ProviderNotEnabled(String)
SecretFetch
SecretCreate
SecretUpdate
SecretDelete
SecretFormat
SecretList(String)
SecretNotFound(String)
StorageFetch
StorageRead
StoragePut
StorageDelete
StorageList
StorageObjectNotFound(String)
MetricsExport(String)
LogWrite(String)
LogExport(String)
TraceSpanCreate(String)
TraceExport(String)
AuthFailed(String)
AuthorizationFailed(String)
InvalidCredentials(String)
ConfigError(String)
MissingConfig(String)
InvalidConfig
Network(String)
Connection(String)
Timeout(String)
Authentication(String)
Serialization(String)
Deserialization(String)
OperationFailed(String)
Internal(String)
Implementations§
Source§impl CloudError
impl CloudError
Sourcepub fn secret_fetch(name: impl Into<String>, error: impl Into<String>) -> Self
pub fn secret_fetch(name: impl Into<String>, error: impl Into<String>) -> Self
Creates a new SecretFetch error.
Sourcepub fn secret_create(name: impl Into<String>, error: impl Into<String>) -> Self
pub fn secret_create(name: impl Into<String>, error: impl Into<String>) -> Self
Creates a new SecretCreate error.
Sourcepub fn secret_update(name: impl Into<String>, error: impl Into<String>) -> Self
pub fn secret_update(name: impl Into<String>, error: impl Into<String>) -> Self
Creates a new SecretUpdate error.
Sourcepub fn storage_fetch(key: impl Into<String>, error: impl Into<String>) -> Self
pub fn storage_fetch(key: impl Into<String>, error: impl Into<String>) -> Self
Creates a new StorageFetch error.
Sourcepub fn storage_put(key: impl Into<String>, error: impl Into<String>) -> Self
pub fn storage_put(key: impl Into<String>, error: impl Into<String>) -> Self
Creates a new StoragePut error.
Sourcepub fn secret_delete(name: impl Into<String>, error: impl Into<String>) -> Self
pub fn secret_delete(name: impl Into<String>, error: impl Into<String>) -> Self
Creates a new SecretDelete error.
Sourcepub fn storage_delete(key: impl Into<String>, error: impl Into<String>) -> Self
pub fn storage_delete(key: impl Into<String>, error: impl Into<String>) -> Self
Creates a new StorageDelete error.
Sourcepub fn storage_read(key: impl Into<String>, error: impl Into<String>) -> Self
pub fn storage_read(key: impl Into<String>, error: impl Into<String>) -> Self
Creates a new StorageRead error.
Trait Implementations§
Source§impl Debug for CloudError
impl Debug for CloudError
Source§impl Display for CloudError
impl Display for CloudError
Source§impl Error for CloudError
impl Error for CloudError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for CloudError
impl From<Error> for CloudError
Auto Trait Implementations§
impl Freeze for CloudError
impl RefUnwindSafe for CloudError
impl Send for CloudError
impl Sync for CloudError
impl Unpin for CloudError
impl UnwindSafe for CloudError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more