Package-level declarations

Custom exceptions for error handling, such as invalid moves, bad FEN strings, or out-of-bounds board coordinates.

Types

Link copied to clipboard
sealed class ChessCoreException(message: String, cause: Throwable? = null) : RuntimeException

Base exception for all chess-core related errors.

Link copied to clipboard
class FileOutOfBoundsException(message: String = "File value should be in the range of a..h", cause: Throwable? = null) : ChessCoreException

Exception thrown when a file value is outside the valid range (a...h).

Link copied to clipboard
class InvalidFenException(message: String, cause: Throwable? = null) : ChessCoreException

Exception thrown when a FEN string is invalid or cannot be parsed.

Link copied to clipboard
class RankOutOfBoundsException(message: String = "Rank value should be in the range of 1..8", cause: Throwable? = null) : ChessCoreException

Exception thrown when a rank value is outside the valid range (1..8).

Link copied to clipboard
class SquareFormatException(message: String, cause: Throwable? = null) : ChessCoreException

Exception thrown when a square string is not in the correct format.