Sha256: 4d208969234b52514fd6a0148823ed33fba62a8aad5007e2c5b387ff43208793

Contents?: true

Size: 522 Bytes

Versions: 1

Compression:

Stored size: 522 Bytes

Contents

require 'just_xiangqi/errors/error'

module JustXiangqi

  # = SquareOccupiedError
  #
  # A square occupied error with a message
  class SquareOccupiedError < Error

    # New square occupied errors can be instantiated with
    #
    # @option [String] message
    #   the message to display.
    #
    # ==== Example:
    #   # Instantiates a new SquareOccupiedError 
    #   JustXiangqi::SquareOccupiedError.new("Custom Message")
    def initialize(message="Square is already occupied.")
      super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
just_xiangqi-0.1.0 lib/just_xiangqi/errors/square_occupied_error.rb