#[non_exhaustive]pub enum ErrorKind {
Show 23 variants
UciNoArgument,
UciCannotParseInt,
UciInvalidOption,
UciUnknownCommand,
UciNoCommand,
UciDebugNoMode,
UciDebugIllegalMode,
UciSetOptionNoName,
UciPositionMalformed,
UciPositionIllegalMove,
UciOptionCannotUpdate,
Fen,
ParseSquareMalformed,
ParseFileMalformed,
ParseRankMalformed,
ParseColorMalformed,
ParsePieceMalformed,
ParseCastlingMalformed,
ModeNotSatisfied,
MoveHistoryExceeded,
EngineTranspositionTableInUse,
EngineAlreadySearching,
GameIllegalMove,
}
Expand description
A list specifying general errors for Blunders engine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UciNoArgument
An argument was expected following a string key, but none was provided.
UciCannotParseInt
Uci failed to parse an integer type.
UciInvalidOption
Uci received an unsupported option.
UciUnknownCommand
Uci received an unknown command.
UciNoCommand
Uci received no command string.
UciDebugNoMode
Uci debug missing mode.
UciDebugIllegalMode
Uci debug illegal mode.
UciSetOptionNoName
No name provided for Uci setoption command.
UciPositionMalformed
Uci position command malformed.
UciPositionIllegalMove
Uci position command given illegal move.
UciOptionCannotUpdate
Uci Option fails to update.
Fen
Fen error kinds.
ParseSquareMalformed
Square parse string malformed.
ParseFileMalformed
File parse string malformed.
ParseRankMalformed
Rank parse string malformed.
ParseColorMalformed
Color parse string malformed.
ParsePieceMalformed
Piece parse string malformed.
ParseCastlingMalformed
Piece parse string malformed.
ModeNotSatisfied
Time Management Mode cannot be created, missing fields.
MoveHistoryExceeded
The engine can only play games with a finite static number of moves. That limit has been exceeded.
EngineTranspositionTableInUse
Engine’s transposition table is being referenced from another thread.
EngineAlreadySearching
Engine is currently searching, so another search cannot be started.