Class: JustBackgammon::WrongPhaseError

Inherits:
Object
  • Object
show all
Defined in:
lib/just_backgammon/errors/wrong_phase_error.rb

Overview

WrongPhaseError

A wrong phase error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "It is the wrong phase.") ⇒ WrongPhaseError

A new instance of WrongPhaseError.

Example:

# Instantiates a new WrongPhaseError
JustBackgammon::WrongPhaseError.new("Custom Message")

Parameters:

  • [String] (Hash)

    a customizable set of options



16
17
18
# File 'lib/just_backgammon/errors/wrong_phase_error.rb', line 16

def initialize(message="It is the wrong phase.")
  @message = message
end