pub enum YahooError {
AuthFailed(String),
NotFound(String),
RateLimited,
HttpError(u16, String),
ParseError(String),
NetworkError(Error),
}Expand description
Error type for Yahoo Finance client operations.
This enum represents all possible errors that can occur when interacting with the Yahoo Finance API.
Variants§
AuthFailed(String)
Authentication with Yahoo Finance failed.
NotFound(String)
The requested resource was not found.
RateLimited
Rate limit has been exceeded.
HttpError(u16, String)
HTTP error with status code and message.
ParseError(String)
Failed to parse response data.
NetworkError(Error)
Network-level error from reqwest.
Trait Implementations§
Source§impl Debug for YahooError
impl Debug for YahooError
Source§impl Display for YahooError
impl Display for YahooError
Source§impl Error for YahooError
impl Error for YahooError
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 YahooError
impl !RefUnwindSafe for YahooError
impl Send for YahooError
impl Sync for YahooError
impl Unpin for YahooError
impl !UnwindSafe for YahooError
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