llama_cpp_bindings/batch_add_error.rs
1/// Errors that can occur when adding a token to a batch.
2#[derive(thiserror::Error, Debug, PartialEq, Eq)]
3pub enum BatchAddError {
4 /// There was not enough space in the batch to add the token.
5 #[error("Insufficient Space of {0}")]
6 InsufficientSpace(usize),
7 /// Empty buffer is provided for [`crate::llama_batch::LlamaBatch::get_one`]
8 #[error("Empty buffer")]
9 EmptyBuffer,
10 /// An integer value exceeded the allowed range.
11 #[error("Integer overflow: {0}")]
12 IntegerOverflow(String),
13}