diff options
| author | Adam Vandenberg | 2011-03-12 23:06:45 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2011-03-12 23:06:45 -0800 |
| commit | b7f093925e7a751914f131aaecd8c080d3441c16 (patch) | |
| tree | 3db3fdd44686260a81b680a5321da4df37545e13 /Library/Homebrew/exceptions.rb | |
| parent | aff5ea54b8aa6362fad0554664b0cead809623ff (diff) | |
| download | brew-b7f093925e7a751914f131aaecd8c080d3441c16.tar.bz2 | |
Fix inheritance in exceptions
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 10 |
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 |
