Exception: Omnibus::MissingPatch

Inherits:
Error
  • Object
show all
Defined in:
lib/omnibus/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name, search_paths) ⇒ MissingPatch

Returns a new instance of MissingPatch.



69
70
71
# File 'lib/omnibus/exceptions.rb', line 69

def initialize(name, search_paths)
  @name, @search_paths = name, search_paths
end

Instance Method Details

#to_sObject



73
74
75
76
77
78
79
80
# File 'lib/omnibus/exceptions.rb', line 73

def to_s
  <<~EOH
    Attempting to apply the patch `#{@name}', but it was not found at any of the
    following locations:

    #{@search_paths.map { |path| "    #{path}" }.join("\n")}
  EOH
end