NoPieceSelected

class NoPieceSelected(message: String = "No piece selected", type: ErrorType = ErrorType.INFO) : ReversiException

Exception thrown when the user attempts to start a game without selecting a piece color.

Parameters

message

Descriptive error message.

type

The error severity type (default: INFO).

Constructors

Link copied to clipboard
constructor(message: String = "No piece selected", type: ErrorType = ErrorType.INFO)