Expand description
Error types for the RESO client library
This module defines all error types that can occur when using the RESO client. Errors are categorized by their source and include detailed context.
§Examples
let client = ResoClient::from_env()?;
let query = QueryBuilder::new("Property")
.filter("City eq 'Austin'")
.build()?;
match client.execute(&query).await {
Ok(results) => {
println!("Success!");
}
Err(ResoError::Unauthorized { message, .. }) => {
eprintln!("Auth failed: {}", message);
}
Err(ResoError::NotFound { message, .. }) => {
eprintln!("Resource not found: {}", message);
}
Err(ResoError::Network(msg)) => {
eprintln!("Network error: {}", msg);
}
Err(e) => {
eprintln!("Other error: {}", e);
}
}Structs§
- OData
Error Detail - OData
Error Response - OData error response format
Enums§
- Reso
Error - RESO client errors
Type Aliases§
- Result
- Result type alias for RESO client operations