Exception: JustXiangqi::PieceNotFoundError

Inherits:
Error
  • Object
show all
Defined in:
lib/just_xiangqi/errors/piece_not_found_error.rb

Overview

PieceNotFoundError

An piece not found error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "The piece could not be found.") ⇒ PieceNotFoundError

New piece not found errors can be instantiated with

Example:

# Instantiates a new PieceNotFoundError 
JustXiangqi::PieceNotFoundError.new("Custom Message")

Parameters:

  • [String] (Hash)

    a customizable set of options



18
19
20
# File 'lib/just_xiangqi/errors/piece_not_found_error.rb', line 18

def initialize(message="The piece could not be found.")
  super
end