pub enum EngineError {
ComponentNotFound(ComponentId),
ChannelNotFound(ChannelId),
NoTarget,
SendFailed(String),
ChannelClosed,
NotRunning,
Timeout(RequestId),
ComponentFailed(String),
NoSubscriber(EventCategory),
PackageFailed(String),
PackageNotSupported(ComponentId),
}Expand description
Engine layer error.
Represents failures within the Engine runtime and EventBus.
Implements ErrorCode for standardized error handling.
§Example
use orcs_runtime::EngineError;
use orcs_types::ErrorCode;
let err = EngineError::NoTarget;
assert_eq!(err.code(), "ENGINE_NO_TARGET");
assert!(!err.is_recoverable());Variants§
ComponentNotFound(ComponentId)
Component not found in EventBus registry.
ChannelNotFound(ChannelId)
Channel not found for event injection.
NoTarget
Request target is required but not specified.
SendFailed(String)
Failed to send message to component.
ChannelClosed
Component channel was closed unexpectedly.
NotRunning
Engine is not running.
Timeout(RequestId)
Request timed out waiting for response.
ComponentFailed(String)
Component returned an error.
NoSubscriber(EventCategory)
No subscriber for the requested category.
PackageFailed(String)
Package operation failed.
PackageNotSupported(ComponentId)
Component does not support packages.
Trait Implementations§
Source§impl Clone for EngineError
impl Clone for EngineError
Source§fn clone(&self) -> EngineError
fn clone(&self) -> EngineError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EngineError
impl Debug for EngineError
Source§impl Display for EngineError
impl Display for EngineError
Source§impl Error for EngineError
impl Error for EngineError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for EngineError
impl RefUnwindSafe for EngineError
impl Send for EngineError
impl Sync for EngineError
impl Unpin for EngineError
impl UnsafeUnpin for EngineError
impl UnwindSafe for EngineError
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
Mutably borrows from an owned value. Read more