Sha256: 2b649250c10cf8d8861bcba20e7cb6a881c632bff7a8d4299f87c30a1c2aeff2

Contents?: true

Size: 459 Bytes

Versions: 8

Compression:

Stored size: 459 Bytes

Contents

module JustBackgammon

  # = PointNotFoundError
  #
  # A point not found error with a message
  class PointNotFoundError

    # A new instance of PointNotFoundError.
    #
    # @option [String] message
    #   the message.
    #
    # ==== Example:
    #   # Instantiates a new PointNotFoundError
    #   JustBackgammon::PointNotFoundError.new("Custom Message")
    def initialize(message="Point cannot be found.")
      @message = message
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
just_backgammon-1.1.0 lib/just_backgammon/errors/point_not_found_error.rb
just_backgammon-1.0.2 lib/just_backgammon/errors/point_not_found_error.rb
just_backgammon-1.0.1 lib/just_backgammon/errors/point_not_found_error.rb
just_backgammon-1.0.0 lib/just_backgammon/errors/point_not_found_error.rb
just_backgammon-0.2.0 lib/just_backgammon/errors/point_not_found_error.rb
just_backgammon-0.1.2 lib/just_backgammon/errors/point_not_found_error.rb
just_backgammon-0.1.1 lib/just_backgammon/errors/point_not_found_error.rb
just_backgammon-0.1.0 lib/just_backgammon/errors/point_not_found_error.rb