Exception: Sashite::Stn::Error::Coordinate

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

Overview

Raised when a CELL coordinate used as a board key is invalid.

Examples:

begin
  Sashite::Stn.parse({ "board" => { "a0" => "C:P" } })
rescue Sashite::Stn::Error::Coordinate => e
  warn "Bad CELL: #{e.message}"
end