Class: JustCheckers::PieceMustCaptureError

Inherits:
Error
  • Object
show all
Defined in:
lib/just_checkers/errors/piece_must_capture_error.rb

Overview

PieceMustCaptureError

A piece must capture error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Another piece must capture first.") ⇒ PieceMustCaptureError

New piece must capture errors can be instantiated with

Example:

# Instantiates a new PieceMustCaptureError
JustCheckers::PieceMustCaptureError.new("Custom Message")

Parameters:

  • [String] (Hash)

    a customizable set of options



18
19
20
# File 'lib/just_checkers/errors/piece_must_capture_error.rb', line 18

def initialize(message="Another piece must capture first.")
  super
end