kora_lib/bundle/jito/error.rs
1use thiserror::Error;
2
3/// Jito-specific errors
4#[derive(Debug, Error)]
5pub enum JitoError {
6 #[error("Jito API error: {0}")]
7 ApiError(String),
8
9 #[error("Jito bundles not enabled in configuration")]
10 NotEnabled,
11
12 #[error("Bundle exceeds maximum size of {0} transactions")]
13 BundleTooLarge(usize),
14
15 #[error("Bundle payment insufficient: required {0} lamports, found {1} lamports")]
16 InsufficientBundlePayment(u64, u64),
17}