Sha256: 52d5ad4bde09a5df38b90dd416ec39694ded2f3be005cb9ad6da361fe7820250

Contents?: true

Size: 505 Bytes

Versions: 5

Compression:

Stored size: 505 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 = path
    end

    # @return [String]
    def to_s
      "No ignore file found at '#{File.expand_path(@path)}'!"
    rescue
      "No ignore file found at '#{@path}'!"
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
buff-ignore-1.2.0 lib/buff/ignore/errors.rb
buff-ignore-1.1.1 lib/buff/ignore/errors.rb
buff-ignore-1.1.0 lib/buff/ignore/errors.rb
buff-ignore-1.0.4 lib/buff/ignore/errors.rb
buff-ignore-1.0.3 lib/buff/ignore/errors.rb