Exception: Sashite::Stn::Error::Piece

Inherits:
Validation show all
Defined in:
lib/sashite/stn/error.rb

Overview

Raised when a QPI identifier (in board values or hand keys) is invalid.

Examples:

begin
  Sashite::Stn.parse({ "board" => { "e4" => "C:k" } }) # semantic mismatch
rescue Sashite::Stn::Error::Piece => e
  warn "Bad QPI: #{e.message}"
end