MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / validation_error

Function validation_error

python/src/errors.rs:214–221  ·  view source on GitHub ↗

Create validation error with field and value context

(field: &str, value: Option<&str>, message: &str)

Source from the content-addressed store, hash-verified

212
213/// Create validation error with field and value context
214pub(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
224pub(crate) fn timeout_error(operation: &str, duration_ms: u64, message: &str) -> PyErr {

Callers 12

complete_asyncMethod · 0.85
completeMethod · 0.85
complete_batchMethod · 0.85
chat_optimizedMethod · 0.85
streamMethod · 0.85
complete_fullMethod · 0.85
complete_full_asyncMethod · 0.85
newMethod · 0.85
executeMethod · 0.85
run_asyncMethod · 0.85
configureMethod · 0.85
execute_streamingMethod · 0.85

Calls 2

python_error_to_py_errFunction · 0.85
to_stringMethod · 0.80

Tested by

no test coverage detected