1use thiserror::Error; 2 3#[derive(Error, Debug)] 4pub enum StackError{ 5 #[error("Empty stack")] 6 EmptyStack 7}