diff options
Diffstat (limited to 'lib/e2mmap.rb')
-rw-r--r-- | lib/e2mmap.rb | 4 |
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) |