Class: JustChess::InvalidMoveError
- Defined in:
- lib/just_chess/errors/invalid_move_error.rb
Overview
InvalidMoveError
An invalid move error with a message
Instance Method Summary collapse
-
#initialize(message = "Move is invalid.") ⇒ InvalidMoveError
constructor
New invalid move errors can be instantiated with.
Constructor Details
#initialize(message = "Move is invalid.") ⇒ InvalidMoveError
New invalid move errors can be instantiated with
Example:
# Instantiates a new InvalidMoveError
JustChess::InvalidMoveError.new("Custom Message")
18 19 20 |
# File 'lib/just_chess/errors/invalid_move_error.rb', line 18 def initialize(="Move is invalid.") super end |