summaryrefslogtreecommitdiff
path: root/lib
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
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')
-rw-r--r--lib/e2mmap.rb4
-rw-r--r--lib/ftplib.rb2
-rw-r--r--lib/sync.rb2
-rw-r--r--lib/thread.rb2
4 files changed, 5 insertions, 5 deletions
diff --git a/lib/e2mmap.rb b/lib/e2mmap.rb
index d10657b..d9acf56 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)
diff --git a/lib/ftplib.rb b/lib/ftplib.rb
index e79868b..f0c3f10 100644
--- a/lib/ftplib.rb
+++ b/lib/ftplib.rb
@@ -8,7 +8,7 @@
require "socket"
require "monitor"
-class FTPError < Exception; end
+class FTPError < StandardError; end
class FTPReplyError < FTPError; end
class FTPTempError < FTPError; end
class FTPPermError < FTPError; end
diff --git a/lib/sync.rb b/lib/sync.rb
index 6d79cc2..9f9706d 100644
--- a/lib/sync.rb
+++ b/lib/sync.rb
@@ -55,7 +55,7 @@ module Sync_m
EX = :EX
# 例外定義
- class Err < Exception
+ class Err < StandardError
def Err.Fail(*opt)
fail self, sprintf(self::Message, *opt)
end
diff --git a/lib/thread.rb b/lib/thread.rb
index 709aa83..7706d59 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -9,7 +9,7 @@ unless defined? Thread
end
unless defined? ThreadError
- class ThreadError<Exception
+ class ThreadError<StandardError
end
end