pub enum ErrorData {
Show 17 variants
InvalidClientConfig {
message: String,
errors: Option<String>,
},
AuthenticationError {
message: String,
},
RemoteResourceNotFound {
resource_type: String,
resource_name: String,
},
RemoteResourceConflict {
resource_type: String,
resource_name: String,
message: String,
},
RemoteAccessDenied {
resource_type: String,
resource_name: String,
},
RateLimitExceeded {
message: String,
},
Timeout {
message: String,
},
RemoteServiceUnavailable {
message: String,
},
QuotaExceeded {
message: String,
},
HttpRequestFailed {
message: String,
},
HttpResponseError {
message: String,
url: String,
http_status: u16,
http_request_text: Option<String>,
http_response_text: Option<String>,
},
RequestSignError {
message: String,
},
GenericError {
message: String,
},
InvalidInput {
message: String,
field_name: Option<String>,
},
SerializationError {
message: String,
},
KubeconfigError {
message: String,
},
DataLoadError {
message: String,
},
}Expand description
Represents common infrastructure errors across multiple cloud platforms.
Variants§
InvalidClientConfig
Invalid or malformed platform configuration.
Fields
AuthenticationError
Authentication with cloud provider failed.
RemoteResourceNotFound
The requested resource does not exist.
Fields
RemoteResourceConflict
Operation conflicts with current resource state (e.g., resource already exists, concurrent modifications, etag mismatch).
Fields
RemoteAccessDenied
Access denied due to insufficient permissions.
Fields
RateLimitExceeded
Request rate limit exceeded.
Timeout
Operation exceeded the allowed timeout.
Service is temporarily unavailable.
QuotaExceeded
Quota or resource limits have been exceeded.
HttpRequestFailed
Network or request-level failure when sending HTTP request.
HttpResponseError
HTTP request succeeded but returned a non-success status code.
Fields
RequestSignError
Failure during signing of an HTTP request (e.g., AWS SigV4).
GenericError
Catch-all error
InvalidInput
Invalid or malformed input parameters provided to the operation.
Fields
SerializationError
Failed to serialize or deserialize data.
KubeconfigError
Failed to load or parse kubeconfig file.
DataLoadError
Failed to load data from base64 or file.
Trait Implementations§
Source§impl AlienErrorData for ErrorData
impl AlienErrorData for ErrorData
Source§fn http_status_code(&self) -> u16
fn http_status_code(&self) -> u16
Source§fn retryable_inherit(&self) -> Option<bool>
fn retryable_inherit(&self) -> Option<bool>
Source§fn internal_inherit(&self) -> Option<bool>
fn internal_inherit(&self) -> Option<bool>
Source§fn http_status_code_inherit(&self) -> Option<u16>
fn http_status_code_inherit(&self) -> Option<u16>
Source§impl<'de> Deserialize<'de> for ErrorData
impl<'de> Deserialize<'de> for ErrorData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for ErrorData
impl RefUnwindSafe for ErrorData
impl Send for ErrorData
impl Sync for ErrorData
impl Unpin for ErrorData
impl UnsafeUnpin for ErrorData
impl UnwindSafe for ErrorData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.