kora_lib/bundle/
error.rs

1use crate::bundle::jito::JitoError;
2use thiserror::Error;
3
4/// Bundle errors
5#[derive(Debug, Error)]
6pub enum BundleError {
7    #[error("Bundle is empty")]
8    Empty,
9
10    #[error("Bundle validation failed: {0}")]
11    ValidationError(String),
12
13    #[error("Failed to serialize transaction: {0}")]
14    SerializationError(String),
15
16    #[error(transparent)]
17    Jito(#[from] JitoError),
18}