homebrew-cask-versions/lib/vendor/homebrew-fork/exceptions.rb
Paul Hinze 63d748e14c core: [refactor] separate Hbc::Cask from Hbc
Hbc is the namespace, Hbc::Cask is the object representing a Cask

One step on the path to reducing the surface area of the God-object
we've grown over the years. :)
2015-02-07 16:37:32 -06:00

12 lines
358 B
Ruby

module Hbc; end
# raised by safe_system in utils.rb
class Hbc::ErrorDuringExecution < RuntimeError
def initialize(cmd, args=[])
args = args.map { |a| a.to_s.gsub " ", "\\ " }.join(" ")
super "Failure while executing: #{cmd} #{args}"
end
end
# raised in Hbc::HbCurlDownloadStrategy.fetch
class Hbc::CurlDownloadStrategyError < RuntimeError; end