use failure::Fail;
#[derive(Clone, Debug, Fail)]
pub enum Error {
#[fail(display = "Invalid FEN string: {}", fen)]
InvalidFen { fen: String },
#[fail(
display = "The board specified did not pass sanity checks. Are you sure the kings exist and the side to move cannot capture the opposing king?"
)]
InvalidBoard,
#[fail(display = "The string specified does not contain a valid algebraic notation square")]
InvalidSquare,
#[fail(display = "The string specified does not contain a valid SAN notation move")]
InvalidSanMove,
#[fail(display = "The string specified does not contain a valid UCI notation move")]
InvalidUciMove,
#[fail(display = "The string specified does not contain a valid rank")]
InvalidRank,
#[fail(display = "The string specified does not contain a valid file")]
InvalidFile,
}