pub enum LimitlessError {
Show 18 variants
ApiError(LimitlessContentError),
ChannelSendError {
underlying: String,
},
ValidationError(String),
ReqError(Error),
InvalidHeaderError(InvalidHeaderValue),
IoError(Error),
ParseFloatError(ParseFloatError),
UrlParserError(ParseError),
Json(Error),
Tungstenite(Error),
TimestampError(SystemTimeError),
SerdeError(Error),
InternalServerError,
ServiceUnavailable,
Unauthorized,
RateLimited,
StatusCode(u16),
Base(String),
}Expand description
Top-level error type covering all possible failures when interacting with the Limitless Exchange API.
Variants§
ApiError(LimitlessContentError)
The Limitless API returned an error response (4xx/5xx with a body).
ChannelSendError
Failed to send a value on an internal channel (WebSocket event loop).
ValidationError(String)
Request parameters failed client-side validation before being sent.
ReqError(Error)
Reqwest HTTP client error (network, DNS, TLS, timeout).
InvalidHeaderError(InvalidHeaderValue)
Invalid HTTP header value provided.
IoError(Error)
Standard I/O error.
ParseFloatError(ParseFloatError)
Failed to parse a string as a floating-point number.
UrlParserError(ParseError)
URL parsing failure.
Json(Error)
JSON serialization/deserialization error.
Tungstenite(Error)
WebSocket protocol / transport error.
TimestampError(SystemTimeError)
System time error (clock may be before Unix epoch).
SerdeError(Error)
Generic serde deserialization error.
InternalServerError
The server returned 500 Internal Server Error.
The server returned 503 Service Unavailable.
The server returned 401 Unauthorized — check your API key/token.
RateLimited
Rate-limited (429 Too Many Requests). Retry with backoff.
StatusCode(u16)
The server returned an unexpected status code.
Base(String)
A catch-all for errors that do not fit other variants.
Trait Implementations§
Source§impl Debug for LimitlessError
impl Debug for LimitlessError
Source§impl Display for LimitlessError
impl Display for LimitlessError
Source§impl Error for LimitlessError
impl Error for LimitlessError
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
use the Display impl or to_string()