Class: JustChess::NoPieceError

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

Overview

NoPieceError

A no piece error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "There is no piece to move.") ⇒ NoPieceError

New no piece errors can be instantiated with

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



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

def initialize(message="There is no piece to move.")
  super
end