scarlet_queen_core/error.rs
1//! Mod for `CoreError`.
2
3#[derive(Debug, thiserror::Error, PartialEq, Eq)]
4/// Error
5pub enum CoreError {
6 #[error("StringToPokemonTypeConvertError: Failed to convert String to PokemonType")]
7 /// Failed to convert `String` to `PokemonType`
8 StringToPokemonTypeConvertError,
9 /// Failed to convert `PokemonType` to different `PokemonType`
10 #[error("PokemonTypeConvertError: Failed to convert `PokemonType` to different `PokemonType`")]
11 PokemonTypeConvertError,
12}