Exception: Sashite::Pmn::Error::Piece

Inherits:
Action show all
Defined in:
lib/sashite/pmn/error.rb

Overview

Raised when a piece identifier is not valid QPI format.

Examples:

begin
  Sashite::Pmn::Action.new("e2", "e4", "NotQPI")
rescue Sashite::Pmn::Error::Piece => e
  warn "Invalid piece QPI: #{e.message}"
end