pub enum BattalionError {
Show 20 variants
ConfigurationError(String),
PaladinError(String),
FormationError(String),
PhalanxError(String),
CampaignError(String),
InvalidGraph(String),
ChainOfCommandError(String),
CommanderValidation(String),
StrategySelection(String),
CouncilError(CouncilError),
GroveError(GroveError),
RoutingError(String),
PaladinNotFound(String),
GroveRoutingFailed(String),
MetadataExportFailed(String),
Timeout(u64),
ValidationError(String),
AggregationError(String),
Cancelled,
ExecutionError(String),
}Expand description
Error types for Battalion operations
Variants§
ConfigurationError(String)
Configuration error
PaladinError(String)
Paladin execution error
FormationError(String)
Formation-specific error
PhalanxError(String)
Phalanx-specific error
CampaignError(String)
Campaign-specific error
InvalidGraph(String)
Invalid graph structure
ChainOfCommandError(String)
Chain of Command error
CommanderValidation(String)
Commander validation error
StrategySelection(String)
Strategy selection error
CouncilError(CouncilError)
Council pattern error
GroveError(GroveError)
Grove pattern error
RoutingError(String)
Routing error (Grove pattern) - kept for backward compatibility
PaladinNotFound(String)
Paladin not found in registry
GroveRoutingFailed(String)
Grove routing failed
MetadataExportFailed(String)
Metadata export failed (non-fatal)
Timeout(u64)
Timeout error
ValidationError(String)
Validation error
AggregationError(String)
Aggregation error
Cancelled
Battalion execution cancelled
ExecutionError(String)
General execution error
Trait Implementations§
Source§impl Clone for BattalionError
impl Clone for BattalionError
Source§fn clone(&self) -> BattalionError
fn clone(&self) -> BattalionError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BattalionError
impl Debug for BattalionError
Source§impl Display for BattalionError
impl Display for BattalionError
Source§impl Error for BattalionError
impl Error for BattalionError
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
use the Display impl or to_string()
Source§impl From<ConclaveError> for BattalionError
impl From<ConclaveError> for BattalionError
Source§fn from(error: ConclaveError) -> BattalionError
fn from(error: ConclaveError) -> BattalionError
Source§impl From<CouncilError> for BattalionError
impl From<CouncilError> for BattalionError
Source§fn from(source: CouncilError) -> BattalionError
fn from(source: CouncilError) -> BattalionError
Source§impl From<GroveError> for BattalionError
impl From<GroveError> for BattalionError
Source§fn from(source: GroveError) -> BattalionError
fn from(source: GroveError) -> BattalionError
Source§impl From<PaladinError> for BattalionError
Convert PaladinError to BattalionError
impl From<PaladinError> for BattalionError
Convert PaladinError to BattalionError
Allows Paladin execution errors to be propagated as Battalion errors in multi-agent orchestration patterns such as Chain of Command.
Source§fn from(err: PaladinError) -> BattalionError
fn from(err: PaladinError) -> BattalionError
Source§impl From<RegistryError> for BattalionError
Convert RegistryError to BattalionError
impl From<RegistryError> for BattalionError
Convert RegistryError to BattalionError
This conversion allows registry errors to be propagated as Battalion errors, particularly useful for Council and Grove operations that need to resolve Paladin IDs from the registry.
Source§fn from(error: RegistryError) -> BattalionError
fn from(error: RegistryError) -> BattalionError
Auto Trait Implementations§
impl Freeze for BattalionError
impl RefUnwindSafe for BattalionError
impl Send for BattalionError
impl Sync for BattalionError
impl Unpin for BattalionError
impl UnsafeUnpin for BattalionError
impl UnwindSafe for BattalionError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more