Sha256: 18cb732836868df80aa04ebcc1c9c8ed6852283459cdc744d4320afd652156e3

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

require 'just_xiangqi/errors/error'

module JustXiangqi
  
  # = NotPlayersTurnError
  #
  # A not players turn error with a message
  class NotPlayersTurnError < Error
    
    # New not players turn errors can be instantiated with
    #
    # @option [String] message
    #   the message to display.
    #
    # ==== Example:
    #   # Intantiates a new NotPlayersTurnError
    #   JustXiangqi::NotPlayersTurnError.new("Custom Message")
    def initialize(message="It is not the player's turn yet.")
      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/not_players_turn_error.rb