Exception: JustXiangqi::PieceNotFoundError
- 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
-
#initialize(message = "The piece could not be found.") ⇒ PieceNotFoundError
constructor
New piece not found errors can be instantiated with.
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")
18 19 20 |
# File 'lib/just_xiangqi/errors/piece_not_found_error.rb', line 18 def initialize(="The piece could not be found.") super end |