class JustChess::OffBoardError

OffBoardError

An off board error with a message

Public Class Methods

new(message="Cannot move off board.") click to toggle source

New off board errors can be instantiated with

@option [String] message

the message to display.

Example:

# Instantiates a new OffBoardError
JustChess::OffBoardError.new("Custom Message")
Calls superclass method JustChess::Error::new
# File lib/just_chess/errors/off_board_error.rb, line 18
def initialize(message="Cannot move off board.")
  super
end