mirror of
https://github.com/kristoferssolo/Advent-of-Code.git
synced 2025-10-21 18:00:35 +00:00
20 lines
385 B
Rust
20 lines
385 B
Rust
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum HandParseError {
|
|
#[error("Invalid card: {0}")]
|
|
InvalidCard(char),
|
|
|
|
#[error("Invalid bid: {0}")]
|
|
InvalidBid(#[from] std::num::ParseIntError),
|
|
|
|
#[error("Invalid card count")]
|
|
InvalidCardCount,
|
|
}
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum CombinationError {
|
|
#[error("Invalid card count")]
|
|
InvalidCardCount,
|
|
}
|