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§fn human_layer_presentation(&self) -> HumanLayerPresentation
fn human_layer_presentation(&self) -> HumanLayerPresentation
Source§impl<'de> Deserialize<'de> for ErrorData
impl<'de> Deserialize<'de> for ErrorData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ErrorData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for ErrorData
impl Serialize for ErrorData
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more