Sha256: 2cc6c89514da74cbf9fe74aae40bc3b3f73aaf77346f3f5c12eee3871b58bda0

Contents?: true

Size: 453 Bytes

Versions: 3

Compression:

Stored size: 453 Bytes

Contents

module Buff::Ignore
  # @abstract Exceptions from Buff::Ignore
  class BuffIgnoreError < StandardError; end

  # Raised when an ignore file cannot be found
  class IgnoreFileNotFound < BuffIgnoreError
    # @param [String] path
    #   the path where the ignore file was not found
    def initialize(path)
      @path = File.expand_path(path)
    end

    # @return [String]
    def message
      "No ignore file found at '#{@path}'!"
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
buff-ignore-1.0.2 lib/buff/ignore/errors.rb
buff-ignore-1.0.1 lib/buff/ignore/errors.rb
buff-ignore-1.0.0 lib/buff/ignore/errors.rb