pub enum ErrorData {
Show 17 variants
GenericError {
message: String,
},
UnexpectedResourceType {
resource_id: String,
expected: ResourceType,
actual: ResourceType,
},
InvalidResourceUpdate {
resource_id: String,
reason: String,
},
ResourceHasNoOutputs {
resource_id: String,
},
ResourceNotFound {
resource_id: String,
available_resources: Vec<String>,
},
BindingConfigInvalid {
binding_name: String,
reason: String,
},
BindingEnvVarMissing {
binding_name: String,
env_var: String,
},
BindingJsonParseFailed {
binding_name: String,
reason: String,
},
UnexpectedResourceStatusCombination {
resource_statuses: Vec<String>,
operation: String,
},
ExternalBindingTypeMismatch {
resource_id: String,
expected: String,
actual: String,
},
PresignedRequestExpired {
path: String,
expired_at: DateTime<Utc>,
},
HttpRequestFailed {
url: String,
method: String,
},
OperationNotSupported {
operation: String,
reason: String,
},
LocalFilesystemError {
path: String,
operation: String,
},
FeatureNotEnabled {
feature: String,
},
InvalidEnvelope {
message: String,
field: Option<String>,
},
JsonSerializationFailed {
reason: String,
},
}Expand description
Core error data exposed by the alien-core crate.
Variants§
GenericError
A fallback error when nothing more specific matches.
UnexpectedResourceType
Resource type mismatch found during stack operations.
InvalidResourceUpdate
Attempt to update a resource that does not support updates.
ResourceHasNoOutputs
The resource exists but has not produced any outputs yet.
ResourceNotFound
Requested resource absent from the stack state.
BindingConfigInvalid
Binding configuration is invalid or missing required fields.
BindingEnvVarMissing
Environment variable for binding is missing.
BindingJsonParseFailed
Failed to parse binding JSON from environment variable.
UnexpectedResourceStatusCombination
Unexpected combination of resource statuses when computing stack status.
ExternalBindingTypeMismatch
External binding type does not match the resource type.
PresignedRequestExpired
Presigned request has expired.
HttpRequestFailed
HTTP request failed.
OperationNotSupported
Operation not supported.
LocalFilesystemError
Local filesystem error.
FeatureNotEnabled
Feature not enabled.
InvalidEnvelope
Invalid ARC envelope.
JsonSerializationFailed
JSON serialization failed.
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> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
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.