From 889bb5fb037273135dbc1b2c14c08ecc0162b64f Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Sat, 7 Nov 2015 16:01:05 +0800 Subject: exceptions: add TapAlreadyTappedError --- Library/Homebrew/exceptions.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 3791762c0..23c227825 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -119,6 +119,18 @@ class TapUnavailableError < RuntimeError end end +class TapAlreadyTappedError < RuntimeError + attr_reader :name + + def initialize(name) + @name = name + + super <<-EOS.undent + Tap #{name} already tapped. + EOS + end +end + class TapPinStatusError < RuntimeError attr_reader :name, :pinned -- cgit v1.2.3