MCPcopy Create free account
hub / github.com/cosdata/cosdata / fmt

Method fmt

src/models/common.rs:303–324  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

301
302impl fmt::Display for WaCustomError {
303 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
304 match self {
305 WaCustomError::DatabaseError(msg) => write!(f, "Database error: {}", msg),
306 WaCustomError::SerializationError(msg) => write!(f, "Serialization error: {}", msg),
307 WaCustomError::UpsertFailed => write!(f, "Failed to upsert vectors"),
308 WaCustomError::InvalidParams => write!(f, "Invalid params in request"),
309 WaCustomError::LockError(msg) => write!(f, "Lock error: {}", msg),
310 WaCustomError::QuantizationMismatch => write!(f, "Quantization mismatch"),
311 WaCustomError::LazyLoadingError(msg) => write!(f, "Lazy loading error: {}", msg),
312 WaCustomError::TrainingFailed => write!(f, "Training failed"),
313 WaCustomError::Untrained => write!(f, "Untrained"),
314 WaCustomError::CalculationError => write!(f, "Calculation error"),
315 WaCustomError::FsError(err) => write!(f, "FS error: {}", err),
316 WaCustomError::DeserializationError(err) => write!(f, "Deserialization error: {}", err),
317 WaCustomError::BufIo(err) => write!(f, "Buffer IO error: {}", err),
318 WaCustomError::MetadataError(err) => write!(f, "Metadata error: {}", err),
319 WaCustomError::NotFound(msg) => write!(f, "{} Not Found!", msg),
320 WaCustomError::ConfigError(msg) => write!(f, "{} Config file reading error: ", msg),
321 WaCustomError::NotImplemented(msg) => write!(f, "Not Implemented: {}", msg),
322 WaCustomError::InvalidData(msg) => write!(f, "Invalid data: {}", msg),
323 }
324 }
325}
326
327impl From<QuantizationError> for WaCustomError {

Callers

nothing calls this directly

Calls 2

to_listMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected