pub enum Error {
Show 60 variants
Filesystem(Error),
Http(HttpError),
ResponseError(ResponseError),
PairsSourceNotSupported(&'static str),
AuthorizationGlobalOnly,
MissingArgs(&'static str),
PathParse(String),
PythonWasm(String),
PythonFileRead(PathBuf, Error),
PromptFileRead(PathBuf, Error),
JsonFileRead(PathBuf, Error),
PythonException(String),
PythonNoOutput,
PythonDeserialize(Error<Error>),
PythonHarnessBroken(String),
InlineDeserialize(Error<Error>),
InlineJson(Error),
EmptyStream,
ConfigSetForbidden,
WriterPanic,
LogSubscribeTimedOut,
PluginNotFound(String),
PluginSpawn(Error),
PluginRead(Error),
PluginExit(i32),
PluginCommandForbidden(&'static str),
ToolNotFound(String),
ToolSpawn(Error),
ToolRead(Error),
ToolExit(i32),
PluginNotWhitelisted {
owner: String,
repository: String,
commit_sha: String,
version: String,
},
WhitelistRegex(Error),
ViewerPathMissingSlash(String),
ViewerSendHttp(String),
Updater(String),
Instance(String),
AgentConvert(String),
ClapParse(Error),
FromArgs(FromArgsError),
SpawnExitedBeforePublishing {
name: String,
status: ExitStatus,
stdout: String,
stderr: String,
},
Lockfile {
key: String,
source: Error,
},
Spawn(String, Error),
AgentNoPriorRequest {
agent_instance_hierarchy: String,
},
AgentNoContinuation {
agent_instance_hierarchy: String,
request_count: usize,
},
TagGrouped {
tag: String,
tag_group_id: i64,
parent_agent_instance_hierarchy: String,
},
TagNotFound(String),
AgentInstanceActive {
agent_instance_hierarchy: String,
},
AgentTagActive {
tag: String,
},
EnqueueRefTarget,
WaitRefTarget,
TagLockDroppedWithoutUpgrade {
tag: String,
},
QueueDeleteUnauthorized {
id: i64,
sender_agent_instance_hierarchy: String,
caller_agent_instance_hierarchy: String,
},
ScheduleAlreadyExists {
name: String,
agent_instance_hierarchy: String,
},
Db(Error),
NotImplemented(&'static str),
InvalidQuery(String),
QueryTimeout,
QueryReadOnlyViolation,
Timeout {
timeout_seconds: u64,
},
TokenBudgetExceeded {
limit: u64,
actual: u64,
},
}Variants§
Filesystem(Error)
Http(HttpError)
ResponseError(ResponseError)
PairsSourceNotSupported(&'static str)
AuthorizationGlobalOnly
MissingArgs(&'static str)
PathParse(String)
PythonWasm(String)
PythonFileRead(PathBuf, Error)
PromptFileRead(PathBuf, Error)
JsonFileRead(PathBuf, Error)
PythonException(String)
PythonNoOutput
PythonDeserialize(Error<Error>)
PythonHarnessBroken(String)
InlineDeserialize(Error<Error>)
InlineJson(Error)
EmptyStream
ConfigSetForbidden
WriterPanic
LogSubscribeTimedOut
PluginNotFound(String)
PluginSpawn(Error)
PluginRead(Error)
PluginExit(i32)
PluginCommandForbidden(&'static str)
ToolNotFound(String)
ToolSpawn(Error)
ToolRead(Error)
ToolExit(i32)
PluginNotWhitelisted
WhitelistRegex(Error)
ViewerPathMissingSlash(String)
ViewerSendHttp(String)
Updater(String)
Instance(String)
AgentConvert(String)
ClapParse(Error)
FromArgs(FromArgsError)
SpawnExitedBeforePublishing
Lockfile
Spawn(String, Error)
AgentNoPriorRequest
AgentNoContinuation
TagGrouped
TagNotFound(String)
AgentInstanceActive
AgentTagActive
EnqueueRefTarget
WaitRefTarget
TagLockDroppedWithoutUpgrade
Fields
ScheduleAlreadyExists
Db(Error)
NotImplemented(&'static str)
Endpoint exists in the command tree but the underlying
implementation hasn’t landed yet — typically because it depends
on the postgres-backed logs.* reader that’s still in flight.
InvalidQuery(String)
QueryTimeout
QueryReadOnlyViolation
Timeout
The executor’s whole-stream deadline elapsed. Yielded as the stream’s final item; the stream never outlives the timeout.
TokenBudgetExceeded
The executor’s running token tally over the serialized output
exceeded the request’s max_tokens budget. Yielded as the
stream’s final item in place of the item that pushed it over.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<FromArgsError> for Error
impl From<FromArgsError> for Error
Source§fn from(source: FromArgsError) -> Self
fn from(source: FromArgsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for Error
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
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>
Converts
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>
Converts
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for 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.