Class: JustChess::NotPlayersTurnError

Inherits:
Error
  • Object
show all
Defined in:
lib/just_chess/errors/not_players_turn_error.rb

Overview

NotPlayersTurnError

A not players turn error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "It is not the player's turn yet.") ⇒ NotPlayersTurnError

New not players turn errors can be instantiated with

Example:

# Instantiates a new NotPlayersTurnError
JustChess::NotPlayersTurnError.new("Custom Message")

Parameters:

  • [String] (Hash)

    a customizable set of options



18
19
20
# File 'lib/just_chess/errors/not_players_turn_error.rb', line 18

def initialize(message="It is not the player's turn yet.")
  super
end