Sha256: 743f022079f51d844cd0c4951c9cdf7aff58f46ed39607e8ae77e1d7ea662c40

Contents?: true

Size: 482 Bytes

Versions: 1

Compression:

Stored size: 482 Bytes

Contents

require 'just_xiangqi/errors/error'

module JustXiangqi

  # = OffBoardError
  #
  # An off board error with a message
  class OffBoardError < Error

    # New off board errors can be instantiated with
    #
    # @option [String] message
    #   the message to display.
    #
    # ==== Example:
    #   # Instantiates a new OffBoardError
    #   JustXiangqi::OffBoardError.new("Custom Message")
    def initialize(message="Cannot move off board.")
      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/off_board_error.rb