Class: JustChess::InvalidMoveError

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

Overview

InvalidMoveError

An invalid move error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Move is invalid.") ⇒ InvalidMoveError

New invalid move errors can be instantiated with

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="Move is invalid.")
  super
end