diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-11 11:49:27 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-11 11:49:27 +0000 |
commit | f79e4ca86719844d980da0c9e53c2f68aceb7439 (patch) | |
tree | e4f5d53cff2fd9ca1380c364e61fa4de3b2124a5 | |
parent | ac7955d9fe5046f6cbaaf613b836f3db48974861 (diff) |
Merge from 1.7:
* lib/getoptlong.rb (GetoptLong::Error): provide a common ancestor
for GetoptLong error classes (RCR#129).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@3128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | lib/getoptlong.rb | 9 |
2 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,8 @@ +Wed Dec 11 20:48:03 2002 Akinori MUSHA <knu@iDaemons.org> + + * lib/getoptlong.rb (GetoptLong::Error): provide a common ancestor + for GetoptLong error classes (RCR#129). + Mon Dec 9 15:13:14 2002 Yukihiro Matsumoto <matz@ruby-lang.org> * stable version 1.6.8 release candidate. diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb index e90a9d45bc..9c8ed09db9 100644 --- a/lib/getoptlong.rb +++ b/lib/getoptlong.rb @@ -33,10 +33,11 @@ class GetoptLong # # Error types. # - class AmbigousOption < StandardError; end - class NeedlessArgument < StandardError; end - class MissingArgument < StandardError; end - class InvalidOption < StandardError; end + class Error < StandardError; end + class AmbigousOption < Error; end + class NeedlessArgument < Error; end + class MissingArgument < Error; end + class InvalidOption < Error; end # # Initializer. |