pub enum SettingsError {
Show 16 variants
ParseError(String),
InvalidModel {
agent: String,
model: String,
error: String,
},
MissingField {
agent: String,
field: String,
},
EmptyAgentName {
index: usize,
},
ReservedAgentName {
name: String,
},
DuplicateAgentName {
name: String,
},
NoInvocationSurface {
agent: String,
},
InvalidGlobPattern {
agent: String,
pattern: String,
error: String,
},
InvalidInheritedGlobPattern {
pattern: String,
error: String,
},
ZeroMatchPrompt {
agent: String,
pattern: String,
},
ZeroMatchInheritedPrompt {
pattern: String,
},
NoPrompts {
agent: String,
},
InvalidMcpConfigPath {
path: String,
},
IoError(String),
AgentNotFound {
name: String,
},
DuplicatePromptName {
name: String,
},
}Expand description
Errors that can occur during settings loading and agent resolution.
Variants§
ParseError(String)
The settings file exists but could not be parsed.
InvalidModel
An agent entry has an invalid model string.
MissingField
An agent entry is missing required fields.
EmptyAgentName
An agent entry has an empty name.
ReservedAgentName
An agent entry uses a reserved name.
DuplicateAgentName
Duplicate agent names.
NoInvocationSurface
An agent has no invocation surface enabled.
InvalidGlobPattern
A prompt glob pattern is syntactically invalid.
InvalidInheritedGlobPattern
An inherited prompt glob pattern is syntactically invalid.
ZeroMatchPrompt
A prompt entry resolves to zero files.
ZeroMatchInheritedPrompt
An inherited prompt entry resolves to zero files.
NoPrompts
An agent has no prompts after inheritance.
InvalidMcpConfigPath
An MCP config path does not exist or is invalid.
IoError(String)
I/O error while reading files.
AgentNotFound
An agent was not found in the catalog.
DuplicatePromptName
Duplicate prompt names in the catalog.
Trait Implementations§
Source§impl Debug for SettingsError
impl Debug for SettingsError
Source§impl Display for SettingsError
impl Display for SettingsError
Source§impl Error for SettingsError
impl Error for SettingsError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SettingsError
impl RefUnwindSafe for SettingsError
impl Send for SettingsError
impl Sync for SettingsError
impl Unpin for SettingsError
impl UnsafeUnpin for SettingsError
impl UnwindSafe for SettingsError
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> 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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
fn into_option(self) -> Option<T>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.