spec_stream_engine/
error.rs1use spec_stream_cache::CacheError;
2use spec_stream_core::CoreError;
3use thiserror::Error;
4
5#[derive(Error, Debug)]
6pub enum EngineError {
7 #[error("Core speculative verification error: {0}")]
8 Core(#[from] CoreError),
9
10 #[error("Paged KV-cache error: {0}")]
11 Cache(#[from] CacheError),
12
13 #[error("Model inference error: {0}")]
14 Inference(String),
15
16 #[error("Engine channel closed unexpectedly")]
17 ChannelClosed,
18
19 #[error("Invalid configuration: {0}")]
20 InvalidConfig(String),
21}