use crate::kind::Rs2Exception;
use thiserror::Error;
#[derive(Error, Debug, Clone, PartialEq, Eq)]
pub enum ProcessingBlockConstructionError {
#[error("Could not create the processing block. Type: {0}; Reason: {1}")]
CouldNotCreateProcessingBlock(Rs2Exception, String),
#[error("Could not create the processing queue. Type: {0}; Reason: {1}")]
CouldNotCreateProcessingQueue(Rs2Exception, String),
#[error("Could not start processing the queue. Type: {0}; Reason: {1}")]
CouldNotStartProcessingQueue(Rs2Exception, String),
}
#[derive(Debug, Clone, Error, PartialEq, Eq)]
#[error("Kind: {kind}; Reason: {context}")]
pub struct ProcessFrameError {
pub kind: Rs2Exception,
pub context: String,
}