Method: JustChess::OffBoardError#initialize

Defined in:
lib/just_chess/errors/off_board_error.rb

#initialize(message = "Cannot move off board.") ⇒ OffBoardError

New off board errors can be instantiated with

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="Cannot move off board.")
  super
end