summaryrefslogtreecommitdiff
path: root/lib/e2mmap.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-01 08:56:45 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>1998-05-01 08:56:45 +0000
commit53118356b53259b456aabc11fb1212d965251fc4 (patch)
treecfa16b2fa793fb9a4691f21bd028a0170a598cff /lib/e2mmap.rb
parent896c0dff6330d461ce428d61df0f60fb8bad07a7 (diff)
exception model changed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/e2mmap.rb')
-rw-r--r--lib/e2mmap.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/e2mmap.rb b/lib/e2mmap.rb
index d10657bbad..d9acf5603a 100644
--- a/lib/e2mmap.rb
+++ b/lib/e2mmap.rb
@@ -72,11 +72,11 @@ else
# def_exception(c, m)
# n: exception_name
# m: message_form
- # s: 例外スーパークラス(デフォルト: Exception)
+ # s: 例外スーパークラス(デフォルト: StandardError)
# 例外名``c''をもつ例外を定義し, そのメッセージをmとする.
#
#def def_exception(n, m)
- def self.def_exception(n, m, s = Exception)
+ def self.def_exception(n, m, s = StandardError)
n = n.id2name if n.kind_of?(Fixnum)
e = Class.new(s)
const_set(n, e)