aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/exceptions.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-12 23:06:45 -0800
committerAdam Vandenberg2011-03-12 23:06:45 -0800
commitc8afa69ab69857a38917bd3a0473514dae5ef4b2 (patch)
treea10640f07ed67d67f0d3d1bd86bd411de4b808f9 /Library/Homebrew/exceptions.rb
parent4f7a0cd5236e54d37a4dc955e62d2605e51b0359 (diff)
downloadhomebrew-c8afa69ab69857a38917bd3a0473514dae5ef4b2.tar.bz2
Fix inheritance in exceptions
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
-rw-r--r--Library/Homebrew/exceptions.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb
index 28b46198e..0a4f74e4c 100644
--- a/Library/Homebrew/exceptions.rb
+++ b/Library/Homebrew/exceptions.rb
@@ -1,8 +1,8 @@
-class UsageError <RuntimeError; end
-class FormulaUnspecifiedError <UsageError; end
-class KegUnspecifiedError <UsageError; end
+class UsageError < RuntimeError; end
+class FormulaUnspecifiedError < UsageError; end
+class KegUnspecifiedError < UsageError; end
-class MultipleVersionsInstalledError <RuntimeError
+class MultipleVersionsInstalledError < RuntimeError
attr :name
def initialize name
@@ -13,7 +13,7 @@ end
class NotAKegError < RuntimeError; end
-class NoSuchKegError <RuntimeError
+class NoSuchKegError < RuntimeError
attr :name
def initialize name