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