Skip to main content

ErrorData

Enum ErrorData 

Source
pub enum ErrorData {
Show 39 variants BindingConfigInvalid { binding_name: String, reason: String, }, StorageOperationFailed { binding_name: String, operation: String, }, BuildOperationFailed { binding_name: String, operation: String, }, EnvironmentVariableMissing { variable_name: String, }, InvalidEnvironmentVariable { variable_name: String, value: String, reason: String, }, InvalidConfigurationUrl { url: String, reason: String, }, EventProcessingFailed { event_type: String, reason: String, }, GrpcConnectionFailed { endpoint: String, reason: String, }, GrpcServiceUnavailable { service: String, endpoint: String, reason: String, }, GrpcRequestFailed { service: String, method: String, details: String, }, ServerBindFailed { address: String, reason: String, }, AuthenticationFailed { provider: String, binding_name: String, reason: String, }, OperationNotSupported { operation: String, reason: String, }, FeatureNotEnabled { feature: String, }, GrpcCallFailed { service: String, method: String, reason: String, }, DeserializationFailed { message: String, type_name: String, }, SerializationFailed { message: String, }, NotImplemented { operation: String, reason: String, }, UnexpectedResponseFormat { provider: String, binding_name: String, field: String, response_json: String, }, CloudPlatformError { message: String, resource_id: Option<String>, }, ResourceNotFound { resource_id: String, }, RemoteResourceNotFound { operation_context: String, resource_type: String, resource_name: String, }, RemoteResourceConflict { operation_context: String, resource_type: String, resource_name: String, conflict_reason: String, }, RemoteAccessDenied { operation_context: String, resource_type: String, resource_name: String, }, RateLimitExceeded { operation_context: String, details: String, }, Timeout { operation_context: String, details: String, }, RemoteServiceUnavailable { operation_context: String, details: String, }, QuotaExceeded { operation_context: String, details: String, }, InvalidInput { operation_context: String, details: String, field_name: Option<String>, }, AuthenticationError { operation_context: String, details: String, }, Other { message: String, }, PresignedRequestExpired { path: String, expired_at: DateTime<Utc>, }, HttpRequestFailed { url: String, method: String, }, LocalFilesystemError { path: String, operation: String, }, ClientConfigLoadFailed { provider: String, }, BindingSetupFailed { binding_type: String, reason: String, }, KvOperationFailed { operation: String, key: String, reason: String, }, RemoteAccessFailed { operation: String, }, ClientConfigInvalid { platform: Platform, message: String, },
}
Expand description

Errors related to alien-bindings operations.

Variants§

§

BindingConfigInvalid

Binding provider configuration is invalid or missing.

Fields

§binding_name: String

Name of the binding

§reason: String

Specific reason why the configuration is invalid

§

StorageOperationFailed

Storage operation failed due to provider issues.

Fields

§binding_name: String

Name of the storage binding

§operation: String

Description of the operation that failed

§

BuildOperationFailed

Build operation failed due to provider issues.

Fields

§binding_name: String

Name of the build binding

§operation: String

Description of the operation that failed

§

EnvironmentVariableMissing

Required environment variable is missing or invalid.

Fields

§variable_name: String

Name of the missing environment variable

§

InvalidEnvironmentVariable

Environment variable has an invalid value.

Fields

§variable_name: String

Name of the environment variable

§value: String

The invalid value

§reason: String

Reason why the value is invalid

§

InvalidConfigurationUrl

Configuration URL is malformed or invalid.

Fields

§url: String

The invalid URL

§reason: String

Specific reason why the URL is invalid

§

EventProcessingFailed

Event processing failed due to malformed or unsupported data.

Fields

§event_type: String

Type of event that failed to process

§reason: String

Specific reason for the processing failure

§

GrpcConnectionFailed

gRPC connection failed or became unavailable.

Fields

§endpoint: String

The gRPC endpoint that failed to connect

§reason: String

Reason for the connection failure

§

GrpcServiceUnavailable

gRPC service unavailable or returned error.

Fields

§service: String

Name of the gRPC service

§endpoint: String

The gRPC endpoint

§reason: String

Reason for service unavailability

§

GrpcRequestFailed

gRPC request failed with an error status.

Fields

§service: String

Name of the gRPC service

§method: String

Name of the gRPC method

§details: String

Error details from the gRPC status

§

ServerBindFailed

Server failed to bind to the specified address.

Fields

§address: String

The address that failed to bind

§reason: String

Reason for the bind failure

§

AuthenticationFailed

Authentication failed for the configured provider.

Fields

§provider: String

Name of the provider (aws, gcp, azure, etc.)

§binding_name: String

Name of the binding

§reason: String

Reason for authentication failure

§

OperationNotSupported

Operation not supported by the configured provider.

Fields

§operation: String

Name of the unsupported operation

§reason: String

Reason why the operation is not supported

§

FeatureNotEnabled

Feature is not enabled in the compiled binary.

Fields

§feature: String

Name of the feature that is not enabled

§

GrpcCallFailed

gRPC call failed.

Fields

§service: String

Name of the gRPC service

§method: String

Name of the gRPC method

§reason: String

Reason for the call failure

§

DeserializationFailed

Deserialization of data failed.

Fields

§message: String

Human-readable error message

§type_name: String

Name of the type being deserialized

§

SerializationFailed

Serialization of data failed.

Fields

§message: String

Human-readable error message

§

NotImplemented

Operation is not implemented yet.

Fields

§operation: String

Name of the operation that is not implemented

§reason: String

Reason why the operation is not implemented

§

UnexpectedResponseFormat

Response format from provider API is unexpected or missing required fields.

Fields

§provider: String

Name of the provider (aws, gcp, azure, etc.)

§binding_name: String

Name of the binding

§field: String

Name of the missing or malformed field

§response_json: String

The full response JSON for debugging

§

CloudPlatformError

Cloud platform API error.

Fields

§message: String

Human-readable description of the error

§resource_id: Option<String>

Optional resource ID that was involved in the error

§

ResourceNotFound

Resource not found in the cloud platform.

Fields

§resource_id: String

ID of the resource that was not found

§

RemoteResourceNotFound

The requested remote resource does not exist.

Fields

§operation_context: String

Context of the operation that failed (e.g., “Failed to get ECR repository details”)

§resource_type: String

Type of the resource that was not found

§resource_name: String

Name of the resource that was not found

§

RemoteResourceConflict

Operation conflicts with current remote resource state.

Fields

§operation_context: String

Context of the operation that failed

§resource_type: String

Type of the resource that has a conflict

§resource_name: String

Name of the resource that has a conflict

§conflict_reason: String

Specific reason for the conflict

§

RemoteAccessDenied

Access denied due to insufficient permissions.

Fields

§operation_context: String

Context of the operation that failed

§resource_type: String

Type of the resource access was denied to

§resource_name: String

Name of the resource access was denied to

§

RateLimitExceeded

Request rate limit exceeded.

Fields

§operation_context: String

Context of the operation that failed

§details: String

Additional details about the rate limit

§

Timeout

Operation exceeded the allowed timeout.

Fields

§operation_context: String

Context of the operation that failed

§details: String

Additional details about the timeout

§

RemoteServiceUnavailable

Remote service is temporarily unavailable.

Fields

§operation_context: String

Context of the operation that failed

§details: String

Additional details about the service unavailability

§

QuotaExceeded

Quota or resource limits have been exceeded.

Fields

§operation_context: String

Context of the operation that failed

§details: String

Additional details about the quota violation

§

InvalidInput

Invalid or malformed input parameters provided to the operation.

Fields

§operation_context: String

Context of the operation that failed

§details: String

Details about what input was invalid

§field_name: Option<String>

Optional field name that was invalid

§

AuthenticationError

Authentication with cloud provider failed.

Fields

§operation_context: String

Context of the operation that failed

§details: String

Details about the authentication failure

§

Other

Generic bindings error for uncommon cases.

Fields

§message: String

Human-readable description of the error

§

PresignedRequestExpired

Presigned request has expired and can no longer be used.

Fields

§path: String

Path that the presigned request was for

§expired_at: DateTime<Utc>

When the request expired

§

HttpRequestFailed

HTTP request to external service failed.

Fields

§url: String

URL that was requested

§method: String

HTTP method that was used

§

LocalFilesystemError

Local filesystem operation failed.

Fields

§path: String

Path that the operation was performed on

§operation: String

Operation that failed

§

ClientConfigLoadFailed

Failed to load platform configuration for the provider.

Fields

§provider: String

Name of the provider (aws, gcp, azure, etc.)

§

BindingSetupFailed

Binding setup failed during initialization.

Fields

§binding_type: String

Type of binding being set up

§reason: String

Reason for the setup failure

§

KvOperationFailed

KV operation failed.

Fields

§operation: String

The KV operation that failed

§key: String

The key involved in the operation

§reason: String

Reason for the operation failure

§

RemoteAccessFailed

Remote access to deployment resources failed.

Fields

§operation: String

Description of the operation that failed

§

ClientConfigInvalid

Client configuration is invalid or missing for the platform.

Fields

§platform: Platform

The platform that was expected

§message: String

Description of the configuration issue

Trait Implementations§

Source§

impl AlienErrorData for ErrorData

Source§

fn code(&self) -> &'static str

Short machine-readable identifier (“NOT_FOUND”, “TIMEOUT”, …).
Source§

fn retryable(&self) -> bool

Whether the failing operation can be retried.
Source§

fn internal(&self) -> bool

Whether the error is internal (should not be shown to end users).
Source§

fn http_status_code(&self) -> u16

HTTP status code for this error (defaults to 500).
Source§

fn message(&self) -> String

Human-readable message (defaults to Display).
Source§

fn context(&self) -> Option<Value>

Optional diagnostic payload built from struct/enum fields.
Source§

fn retryable_inherit(&self) -> Option<bool>

Whether to inherit the retryable flag from the source error. Returns None if this error should inherit from source, Some(value) for explicit value.
Source§

fn internal_inherit(&self) -> Option<bool>

Whether to inherit the internal flag from the source error. Returns None if this error should inherit from source, Some(value) for explicit value.
Source§

fn http_status_code_inherit(&self) -> Option<u16>

Whether to inherit the HTTP status code from the source error. Returns None if this error should inherit from source, Some(value) for explicit value.
Source§

impl Clone for ErrorData

Source§

fn clone(&self) -> ErrorData

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ErrorData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ErrorData

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for ErrorData

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ErrorData

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromBase64 for T
where T: for<'de> Deserialize<'de>,

Source§

fn from_base64<Input>(raw: &Input) -> Result<T, Error>
where Input: AsRef<[u8]> + ?Sized,

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> Serialize for T
where T: Serialize + ?Sized,

Source§

fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>

Source§

fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>

Source§

impl<C> SignWithKey<String> for C
where C: ToBase64,

Source§

impl<T> ToBase64 for T
where T: Serialize,

Source§

fn to_base64(&self) -> Result<Cow<'_, str>, Error>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,