pub enum WorkspaceToolConfigError {
ToolDefinition(ToolBuildError),
RootNotFound {
root: PathBuf,
},
RootCanonicalize {
root: PathBuf,
source: Error,
},
RootNotDirectory {
root: PathBuf,
},
InvalidLimit {
name: &'static str,
},
InvalidScopePath {
path: PathBuf,
},
}Expand description
Errors raised while validating workspace tool configuration.
Variants§
ToolDefinition(ToolBuildError)
A built-in tool declaration could not be validated.
RootNotFound
A configured root does not exist.
RootCanonicalize
A configured root could not be canonicalized.
RootNotDirectory
A configured root is not a directory.
InvalidLimit
A numeric limit is invalid.
InvalidScopePath
A workspace tool scope path was not relative and normalized.
Trait Implementations§
Source§impl Debug for WorkspaceToolConfigError
impl Debug for WorkspaceToolConfigError
Source§impl Display for WorkspaceToolConfigError
impl Display for WorkspaceToolConfigError
Source§impl Error for WorkspaceToolConfigError
impl Error for WorkspaceToolConfigError
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()
Source§impl From<ToolBuildError> for WorkspaceToolConfigError
impl From<ToolBuildError> for WorkspaceToolConfigError
Source§fn from(source: ToolBuildError) -> WorkspaceToolConfigError
fn from(source: ToolBuildError) -> WorkspaceToolConfigError
Converts to this type from the input type.
Source§impl From<WorkspaceToolConfigError> for CodingAgentProfileBuildError
impl From<WorkspaceToolConfigError> for CodingAgentProfileBuildError
Source§fn from(source: WorkspaceToolConfigError) -> Self
fn from(source: WorkspaceToolConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for WorkspaceToolConfigError
impl !UnwindSafe for WorkspaceToolConfigError
impl Forget for WorkspaceToolConfigError
impl Freeze for WorkspaceToolConfigError
impl Move for WorkspaceToolConfigError
impl Send for WorkspaceToolConfigError
impl Sync for WorkspaceToolConfigError
impl Unpin for WorkspaceToolConfigError
impl UnsafeUnpin for WorkspaceToolConfigError
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