pub enum ErrorData {
Show 22 variants
InvalidClientConfig {
message: String,
errors: Option<String>,
},
AuthenticationError {
message: String,
},
RemoteResourceNotFound {
resource_type: String,
resource_name: String,
},
ExistingCloudResourceNotOwned {
resource_id: String,
object: 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,
},
VersionLimitExceeded {
message: String,
},
RemoteOperationFailed {
operation: String,
resource_name: String,
status: String,
provider_code: Option<String>,
message: String,
},
HttpRequestFailed {
message: String,
},
HttpResponseBodyReadFailed {
http_status: u16,
},
HttpResponseError {
message: String,
url: String,
http_status: u16,
http_request_text: Option<String>,
http_response_text: Option<String>,
},
RemoteRequestRejected {
service: String,
http_status: u16,
provider_code: String,
message: 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
ExistingCloudResourceNotOwned
An existing cloud object does not belong to the runtime resource being written.
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.
VersionLimitExceeded
A resource reached the provider’s cap on how many versions it can hold. Waiting does not clear it: a version has to be deleted, so a blind retry only repeats the refusal.
RemoteOperationFailed
A remote asynchronous operation finished unsuccessfully; its handle cannot recover. Retrying the issuing handler can reissue the operation, so preserve executor retries. Callers that persist handles must recognize this variant and stop polling the old handle.
Fields
HttpRequestFailed
Network or request-level failure when sending HTTP request.
HttpResponseBodyReadFailed
Body cleanup failed after the service accepted the request.
HttpResponseError
HTTP request succeeded but returned a non-success status code.
Fields
RemoteRequestRejected
The cloud service rejected the request and returned its own error code and message.
Unlike ErrorData::HttpResponseError, this is safe to show to users: it holds only the
service’s code and message, never the request body or the raw response. Wrap the internal
HttpResponseError with it so those stay available for debugging. Retryability comes from
that source, because some rejections are transient (for example, an S3 bucket notification
whose target permission has not propagated yet). Only use it for a service whose error
messages don’t echo submitted values; some APIs repeat request fields, including secrets.
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.