InvalidPlayerInFile

class InvalidPlayerInFile(message: String = "The player in the file is invalid", type: ErrorType = ErrorType.ERROR) : ReversiException

Thrown when a player line in the persisted game file is malformed or contains values that cannot be converted into a valid pt.isel.reversi.core.gameState.Player.

Typical causes:

  • Unknown player identifier

  • Points is not an integer

Constructors

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