pub enum KernelError {
Show 27 variants
KernelNotFound(String),
KernelAlreadyRegistered(String),
InvalidStateTransition {
from: String,
to: String,
},
KernelNotActive(String),
ValidationError(String),
SerializationError(String),
DeserializationError(String),
QueueFull {
capacity: usize,
},
QueueEmpty,
MessageTooLarge {
size: usize,
max: usize,
},
Timeout(Duration),
LaunchFailed(String),
CompilationError(String),
DeviceError(String),
BackendNotAvailable(String),
LicenseError(LicenseError),
SLOViolation(String),
DomainNotSupported(Domain),
InternalError(String),
IoError(Error),
ConfigError(String),
ActorError(String),
RingKernelError(String),
K2KError(String),
Unauthorized(String),
ResourceExhausted(String),
ServiceUnavailable(String),
}Expand description
Errors that can occur during kernel operations.
Variants§
KernelNotFound(String)
Kernel not found in registry.
KernelAlreadyRegistered(String)
Kernel already registered.
InvalidStateTransition
Invalid kernel state transition.
KernelNotActive(String)
Kernel is not in active state.
ValidationError(String)
Input validation failed.
SerializationError(String)
Serialization error.
DeserializationError(String)
Deserialization error.
QueueFull
Message queue is full.
QueueEmpty
Message queue is empty.
MessageTooLarge
Message too large for queue.
Timeout(Duration)
Timeout waiting for response.
LaunchFailed(String)
GPU kernel launch failed.
CompilationError(String)
GPU compilation error.
DeviceError(String)
GPU device error.
BackendNotAvailable(String)
Backend not available.
LicenseError(LicenseError)
License error.
SLOViolation(String)
SLO violation.
DomainNotSupported(Domain)
Domain not supported.
InternalError(String)
Internal error.
IoError(Error)
IO error.
ConfigError(String)
Configuration error.
ActorError(String)
Actor error.
RingKernelError(String)
RingKernel error (from underlying runtime).
K2KError(String)
K2K (Kernel-to-Kernel) communication error.
Unauthorized access.
ResourceExhausted(String)
Resource exhausted (quota exceeded, rate limited, etc.).
Service unavailable (circuit open, degraded, etc.).
Implementations§
Source§impl KernelError
impl KernelError
Sourcepub fn validation(msg: impl Into<String>) -> Self
pub fn validation(msg: impl Into<String>) -> Self
Create a validation error.
Sourcepub fn launch_failed(msg: impl Into<String>) -> Self
pub fn launch_failed(msg: impl Into<String>) -> Self
Create a launch failed error.
Sourcepub fn is_recoverable(&self) -> bool
pub fn is_recoverable(&self) -> bool
Returns true if this is a recoverable error.
Sourcepub fn is_license_error(&self) -> bool
pub fn is_license_error(&self) -> bool
Returns true if this is a license-related error.
Trait Implementations§
Source§impl Debug for KernelError
impl Debug for KernelError
Source§impl Display for KernelError
impl Display for KernelError
Source§impl Error for KernelError
impl Error for KernelError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for KernelError
impl From<Error> for KernelError
Source§impl From<KernelError> for ResilienceError
impl From<KernelError> for ResilienceError
Source§fn from(source: KernelError) -> Self
fn from(source: KernelError) -> Self
Source§impl From<LicenseError> for KernelError
impl From<LicenseError> for KernelError
Source§fn from(source: LicenseError) -> Self
fn from(source: LicenseError) -> Self
Source§impl From<RingKernelError> for KernelError
Convert from ringkernel-core errors.
impl From<RingKernelError> for KernelError
Convert from ringkernel-core errors.