pub enum FerricLinkError {
General(String),
Tracer(TracerException),
OutputParser(OutputParserException),
Serialization(Error),
Io(Error),
Http(Error),
Validation(String),
Configuration(String),
Runtime(String),
NotImplemented(String),
Generic(String),
}
Expand description
Main error type for FerricLink Core
Variants§
General(String)
General FerricLink exception
Tracer(TracerException)
Tracer-related errors
OutputParser(OutputParserException)
Output parser errors with special handling
Serialization(Error)
Serialization/deserialization errors
Io(Error)
IO errors
Http(Error)
HTTP client errors
Validation(String)
Validation errors
Configuration(String)
Configuration errors
Runtime(String)
Runtime errors
NotImplemented(String)
Not implemented errors
Generic(String)
Generic errors
Implementations§
Source§impl FerricLinkError
impl FerricLinkError
Sourcepub fn validation(msg: impl Into<String>) -> Self
pub fn validation(msg: impl Into<String>) -> Self
Create a new validation error
Sourcepub fn configuration(msg: impl Into<String>) -> Self
pub fn configuration(msg: impl Into<String>) -> Self
Create a new configuration error
Sourcepub fn not_implemented(msg: impl Into<String>) -> Self
pub fn not_implemented(msg: impl Into<String>) -> Self
Create a new not implemented error
Sourcepub fn with_code(msg: impl Into<String>, error_code: ErrorCode) -> Self
pub fn with_code(msg: impl Into<String>, error_code: ErrorCode) -> Self
Create a new error with error code and troubleshooting link
Sourcepub fn with_error_code(msg: impl Into<String>, error_code: ErrorCode) -> Self
pub fn with_error_code(msg: impl Into<String>, error_code: ErrorCode) -> Self
Create a new error with specific error code (for testing and internal use)
Sourcepub fn error_code(&self) -> Option<ErrorCode>
pub fn error_code(&self) -> Option<ErrorCode>
Get the error code if available
Sourcepub fn should_send_to_llm(&self) -> bool
pub fn should_send_to_llm(&self) -> bool
Check if this is an output parser error that should be sent to LLM
Source§impl FerricLinkError
Convenience functions for creating specific error types
impl FerricLinkError
Convenience functions for creating specific error types
Sourcepub fn invalid_prompt_input(msg: impl Into<String>) -> Self
pub fn invalid_prompt_input(msg: impl Into<String>) -> Self
Create an invalid prompt input error
Sourcepub fn invalid_tool_results(msg: impl Into<String>) -> Self
pub fn invalid_tool_results(msg: impl Into<String>) -> Self
Create an invalid tool results error
Sourcepub fn message_coercion_failure(msg: impl Into<String>) -> Self
pub fn message_coercion_failure(msg: impl Into<String>) -> Self
Create a message coercion failure error
Sourcepub fn model_authentication(msg: impl Into<String>) -> Self
pub fn model_authentication(msg: impl Into<String>) -> Self
Create a model authentication error
Sourcepub fn model_not_found(msg: impl Into<String>) -> Self
pub fn model_not_found(msg: impl Into<String>) -> Self
Create a model not found error
Sourcepub fn model_rate_limit(msg: impl Into<String>) -> Self
pub fn model_rate_limit(msg: impl Into<String>) -> Self
Create a model rate limit error
Sourcepub fn output_parsing_failure(msg: impl Into<String>) -> Self
pub fn output_parsing_failure(msg: impl Into<String>) -> Self
Create an output parsing failure error
Trait Implementations§
Source§impl Debug for FerricLinkError
impl Debug for FerricLinkError
Source§impl Display for FerricLinkError
impl Display for FerricLinkError
Source§impl Error for FerricLinkError
impl Error for FerricLinkError
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
Source§impl From<Error> for FerricLinkError
impl From<Error> for FerricLinkError
Source§impl From<Error> for FerricLinkError
impl From<Error> for FerricLinkError
Source§impl From<Error> for FerricLinkError
impl From<Error> for FerricLinkError
Source§impl From<OutputParserException> for FerricLinkError
impl From<OutputParserException> for FerricLinkError
Source§fn from(source: OutputParserException) -> Self
fn from(source: OutputParserException) -> Self
Source§impl From<TracerException> for FerricLinkError
impl From<TracerException> for FerricLinkError
Source§fn from(source: TracerException) -> Self
fn from(source: TracerException) -> Self
Auto Trait Implementations§
impl Freeze for FerricLinkError
impl !RefUnwindSafe for FerricLinkError
impl Send for FerricLinkError
impl Sync for FerricLinkError
impl Unpin for FerricLinkError
impl !UnwindSafe for FerricLinkError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoFerricLinkError for Twhere
T: Display,
impl<T> IntoFerricLinkError for Twhere
T: Display,
Source§fn into_ferriclink_error(self) -> FerricLinkError
fn into_ferriclink_error(self) -> FerricLinkError
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.