pub type Error = SandboxError;
Expand description
Legacy error type alias for backward compatibility
Aliased Type§
pub enum Error {
Show 31 variants
SecurityViolation {
violation: String,
instance_id: Option<Uuid>,
context: SecurityContext,
},
ResourceExhausted {
kind: ResourceKind,
limit: u64,
used: u64,
instance_id: Option<Uuid>,
suggestion: Option<String>,
},
WasmRuntime {
function: String,
instance_id: Option<Uuid>,
message: String,
},
Configuration {
message: String,
suggestion: Option<String>,
field: Option<String>,
},
Module {
operation: String,
reason: String,
suggestion: Option<String>,
},
Instance {
operation: String,
instance_id: Option<Uuid>,
reason: String,
},
Communication {
channel: String,
reason: String,
instance_id: Option<Uuid>,
},
Timeout {
operation: String,
duration: Duration,
instance_id: Option<Uuid>,
},
FunctionCall {
function_name: String,
reason: String,
},
Filesystem {
operation: String,
path: PathBuf,
reason: String,
},
Network {
operation: String,
reason: String,
endpoint: Option<String>,
},
Serialization {
format: String,
operation: String,
reason: String,
},
InvalidInput {
field: String,
reason: String,
suggestion: Option<String>,
},
NotFound {
resource_type: String,
identifier: String,
},
Unsupported {
operation: String,
context: String,
suggestion: Option<String>,
},
Generic {
message: String,
},
Template {
message: String,
},
Compilation {
message: String,
},
InstanceCreation {
reason: String,
instance_id: Option<Uuid>,
},
WrapperGeneration {
reason: String,
wrapper_type: Option<String>,
},
ModuleLoad {
message: String,
},
RuntimeInitialization {
message: String,
},
IoError {
message: String,
},
Capability {
message: String,
},
ResourceLimit {
message: String,
},
UnsupportedOperation {
message: String,
},
Io(Error),
Json(Error),
MessagePack(Error),
MessagePackDecode(Error),
Other(Error),
}
Variants§
SecurityViolation
Security violation with detailed context
ResourceExhausted
Resource exhausted with specific usage details
WasmRuntime
WASM runtime error with function context
Configuration
Configuration error with helpful suggestions
Module
Module compilation or loading error
Instance
Instance management error
Communication
Communication channel error
Timeout
Timeout error with context
FunctionCall
Function call error
Filesystem
File system error with path context
Network
Network error with context
Serialization
Serialization/deserialization error
InvalidInput
Invalid input with validation details
NotFound
Resource not found
Unsupported
Operation not supported
Generic
Generic error with a message
Template
Template rendering error
Compilation
Compilation error
InstanceCreation
Instance creation error
WrapperGeneration
Wrapper generation error
ModuleLoad
Module load error
RuntimeInitialization
Runtime initialization error
IoError
IO error with context
Capability
Capability error
ResourceLimit
Resource limit error
UnsupportedOperation
Unsupported operation error