class JustChess::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 message to display.
Example:¶ ↑
# Instantiates a new InvalidMoveError JustChess::InvalidMoveError.new("Custom Message")
Calls superclass method
JustChess::Error::new
# File lib/just_chess/errors/invalid_move_error.rb, line 18 def initialize(message="Move is invalid.") super end