InvalidBoardInFile

class InvalidBoardInFile(message: String = "The board in the file is invalid", type: ErrorType) : ReversiException

Thrown when the board representation in the persisted game file is malformed or contains values that cannot be converted into a valid pt.isel.reversi.core.board.Board.

Typical causes:

  • Incorrect board dimensions

  • Invalid characters representing pieces

  • Piece serialization errors

  • Missing or extra data

Constructors

Link copied to clipboard
constructor(message: String = "The board in the file is invalid", type: ErrorType)