pub enum FttsError {
Generic(String),
Usage(String),
ModelNotFound(String),
Input(String),
BudgetTimeout(String),
ArtifactFormat(String),
EnrollmentQualityRefusal(String),
}Expand description
An error that can be presented by the Phase-0 CLI without fabricating engine work.
Variants§
Generic(String)
Usage(String)
ModelNotFound(String)
Input(String)
BudgetTimeout(String)
ArtifactFormat(String)
EnrollmentQualityRefusal(String)
Implementations§
Source§impl FttsError
impl FttsError
Sourcepub const fn remediation(&self) -> &'static str
pub const fn remediation(&self) -> &'static str
A stable, actionable next step for this failure class.
Kept separate from the message so an agent can branch on remediation without parsing prose, and so the message stays free to name the specific offending path or value.
pub const fn exit_code(&self) -> FttsExitCode
Trait Implementations§
Source§impl Error for FttsError
impl Error for FttsError
1.30.0 · 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 Freeze for FttsError
impl RefUnwindSafe for FttsError
impl Send for FttsError
impl Sync for FttsError
impl Unpin for FttsError
impl UnsafeUnpin for FttsError
impl UnwindSafe for FttsError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).