class JustCheckers::InvalidMoveError

InvalidMoveError

An invalid move error with a message

Public Class Methods

new(message="Move is invalid.") click to toggle source

New invalid move errors can be instantiated with

@option [String] message

the x co-ordinate.

Example:

# Instantiates a new InvalidMoveError
JustCheckers::InvalidMoveError.new("Custom Message")
Calls superclass method JustCheckers::Error::new
# File lib/just_checkers/errors/invalid_move_error.rb, line 18
def initialize(message="Move is invalid.")
  super
end