pub enum Error {
HttpClient(Error),
Configuration(String),
Encryption(String),
Api {
status_code: u16,
message: String,
},
MissingEnvVar(String),
InvalidKey(String),
Serialization(String),
}Expand description
Error types for the Phala TEE deployment library.
This module defines a comprehensive error type hierarchy for handling various error conditions that may occur during TEE deployments.
Variants§
HttpClient(Error)
Errors from the underlying HTTP client library.
This variant wraps errors from the reqwest library, which include network connectivity issues, timeouts, and TLS/SSL errors.
Configuration(String)
Configuration-related errors.
These errors occur when the provided configuration is invalid, such as malformed Docker Compose files or invalid VM settings.
Encryption(String)
Encryption-related errors.
These errors occur during the encryption or decryption of sensitive data, such as environment variables.
Api
API response errors from the Phala Cloud API.
These errors include status codes and error messages directly from the API, such as authentication failures or resource limitations.
MissingEnvVar(String)
Missing environment variable errors.
These errors occur when a required environment variable is not set in the current environment.
InvalidKey(String)
Invalid key format errors.
These errors occur when a cryptographic key is malformed or in an unexpected format.
Serialization(String)
Serialization errors.
These errors occur when serializing or deserializing data.