#[non_exhaustive]pub enum ProjectionError {
Extraction {
source: Box<dyn Error + Send + Sync + 'static>,
},
Graph {
source: Box<dyn Error + Send + Sync + 'static>,
},
Replay {
source: Box<dyn Error + Send + Sync + 'static>,
},
}Expand description
Error returned by crate::EpisodeProjector operations.
Variant docs name the call site that failed; access the wrapped
error via std::error::Error::source (rather than the source
field directly) so callers stay decoupled from the concrete inner
type, which may evolve under the 0.x carve-out.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Extraction
Entity extraction (the
klieo_memory_graph::EntityExtractor supplied to
crate::EpisodeProjector::new) returned an error.
Graph
Indexing into the klieo_memory_graph::KnowledgeGraph
returned an error.
Replay
Replay against the supplied
klieo_core::memory::EpisodicMemory (only used by
crate::EpisodeProjector::project_run) returned an error.
Trait Implementations§
Source§impl Debug for ProjectionError
impl Debug for ProjectionError
Source§impl Display for ProjectionError
impl Display for ProjectionError
Source§impl Error for ProjectionError
impl Error for ProjectionError
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 !RefUnwindSafe for ProjectionError
impl !UnwindSafe for ProjectionError
impl Freeze for ProjectionError
impl Send for ProjectionError
impl Sync for ProjectionError
impl Unpin for ProjectionError
impl UnsafeUnpin for ProjectionError
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