Sha256: 2c83147f6ac66ef0fcb55c95d5f559fa9a902207d43b318e4c12d39d4640b14a

Contents?: true

Size: 382 Bytes

Versions: 11

Compression:

Stored size: 382 Bytes

Contents

module JustChess

  # = Error
  #
  # An error with a message
  class Error

    # New errors can be instantiated with
    #
    # @option [String] message
    #   the message to display.
    #
    # ==== Example:
    #   # Instantiates a new Error
    #   JustChess::Error.new("Custom Message")
    def initialize(message="Generic Error")
      @message = message
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
just_chess-1.0.9 lib/just_chess/errors/error.rb
just_chess-1.0.8 lib/just_chess/errors/error.rb
just_chess-1.0.7 lib/just_chess/errors/error.rb
just_chess-1.0.6 lib/just_chess/errors/error.rb
just_chess-1.0.5 lib/just_chess/errors/error.rb
just_chess-1.0.4 lib/just_chess/errors/error.rb
just_chess-1.0.3 lib/just_chess/errors/error.rb
just_chess-1.0.2 lib/just_chess/errors/error.rb
just_chess-1.0.1 lib/just_chess/errors/error.rb
just_chess-1.0.0 lib/just_chess/errors/error.rb
just_chess-0.1.0 lib/just_chess/errors/error.rb