class JustShogi::PieceNotFoundError
PieceNotFoundError
¶ ↑
An piece not found error with a message
Public Class Methods
new(message="The piece could not be found.")
click to toggle source
New piece not found errors can be instantiated with
@option [String] message
the message to display.
Example:¶ ↑
# Instantiates a new PieceNotFoundError JustShogi::PieceNotFoundError.new("Custom Message")
Calls superclass method
JustShogi::Error::new
# File lib/just_shogi/errors/piece_not_found_error.rb, line 18 def initialize(message="The piece could not be found.") super end