llama_cpp_bindings/error/meta_val_error.rs
1use std::ffi::NulError;
2use std::string::FromUtf8Error;
3
4#[derive(Debug, Eq, PartialEq, thiserror::Error)]
5pub enum MetaValError {
6 #[error("null byte in string {0}")]
7 NullError(#[from] NulError),
8
9 #[error("FromUtf8Error {0}")]
10 FromUtf8Error(#[from] FromUtf8Error),
11
12 #[error("Negative return value. Likely due to a missing index or key. Got return value: {0}")]
13 NegativeReturn(i32),
14}