Create validation error with field and value context
(field: &str, value: Option<&str>, message: &str)
| 212 | |
| 213 | /// Create validation error with field and value context |
| 214 | pub(crate) fn validation_error(field: &str, value: Option<&str>, message: &str) -> PyErr { |
| 215 | let error = PythonBindingError::Validation { |
| 216 | message: message.to_string(), |
| 217 | field: field.to_string(), |
| 218 | value: value.map(|v| v.to_string()), |
| 219 | }; |
| 220 | python_error_to_py_err(error) |
| 221 | } |
| 222 | |
| 223 | /// Create timeout error with operation context |
| 224 | pub(crate) fn timeout_error(operation: &str, duration_ms: u64, message: &str) -> PyErr { |
no test coverage detected