Exception: Sashite::Pmn::Error::Location

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

Overview

Raised when a location is neither a valid CELL coordinate nor HAND (“*”).

Examples:

begin
  Sashite::Pmn::Action.new("ZZ99", "e4", "C:P")
rescue Sashite::Pmn::Error::Location => e
  warn "Invalid location: #{e.message}"
end