homebrew-cask-versions/lib/cask/exceptions.rb
phinze ab57da07ea add brew cask uninstall
this delegates to homebrew's uninstall to get its work done. vanilla
`brew uninstall` actually works, but this gives us a more consistent
interface.

as discussed in #47
2012-10-20 13:01:41 -05:00

21 lines
327 B
Ruby

class CaskNotInstalledError < RuntimeError
attr_reader :cask
def initialize cask
@cask = cask
end
def to_s
"#{cask} is not installed"
end
end
class CaskUnavailableError < RuntimeError
attr_reader :name
def initialize name
@name = name
end
def to_s
"No available cask for #{name}"
end
end