Sha256: 4196574be9921aeda5de1da51e19eeae8f0bc0dbc929ea8502dec084c3e2c480

Contents?: true

Size: 582 Bytes

Versions: 2

Compression:

Stored size: 582 Bytes

Contents

# -*- encoding: utf-8 -*-

module GitShizzle::IndexSpecifications
  class IndexSpecificationError < GitShizzle::Error
    def initialize(indexes)
      super "Could not determine files for indexes: #{indexes.join(', ')}"
    end
  end

  class IndexParserError < GitShizzle::Error
    def initialize(index)
      super "Could not parse index '#{index}'. Please use numeric indexes or Ruby-style ranges."
    end
  end

  class NoFilesError < GitShizzle::Error
    def initialize(identifier)
      super "No files for command '#{identifier}'."
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
git_shizzle-0.2.8 lib/git_shizzle/index_specifications/errors.rb
git_shizzle-0.2.6 lib/git_shizzle/index_specifications/errors.rb