class JustChess::NoPieceError

NoPieceError

A no piece error with a message

Public Class Methods

new(message="There is no piece to move.") click to toggle source

New no piece errors can be instantiated with

@option [String] message

the message to display.

Example:

# Instantiates a new NoPieceError
JustChess::NoPieceError.new("Custom Message")
Calls superclass method JustChess::Error::new
# File lib/just_chess/errors/no_piece_error.rb, line 18
def initialize(message="There is no piece to move.")
  super
end