From: "nobu (Nobuyoshi Nakada)" Date: 2013-08-29T12:52:20+09:00 Subject: [ruby-core:56858] [ruby-trunk - Bug #8730] "rescue Exception" rescues Timeout::ExitException Issue #8730 has been updated by nobu (Nobuyoshi Nakada). kosaki (Motohiro KOSAKI) wrote: > > ��������������������������������������������������������������������������������������������� > > ������������������������������������������������������������ > > ������������������ http://kwfsws.g.hatena.ne.jp/kiwofusi/20111231/1325314356 ������������ > rescue Exception => e ��������������������������������������������������������������������������������������������������������������� > ��������� "ruby timeout ������" ��������������������������������������������������������������������� ��������������� > ������������������������������������������������������������������������������������������rescue Timeout::Error, StandardError =>e > ��������������������������������������������������������� http://d.hatena.ne.jp/dreammind/20090217/1234813224 > > ��������������������������������������������� Timeout.timeout���������������������������(���������������������)Timeout::Error������������������������������������������������ > ���������������������������������Pros/Cons��������������������������������������������������������������� ���������������rescue��������������������������������������������������������������������������������������������������������������������������������������������������������������� ���������������������������������������������timeout������������������������Exception���rescue������timeout��������������������������������������������������������������������������������������������������������������������������������������� ������������������������������������������ ---------------------------------------- Bug #8730: "rescue Exception" rescues Timeout::ExitException https://bugs.ruby-lang.org/issues/8730#change-41400 Author: takiuchi (Genki Takiuchi) Status: Rejected Priority: Normal Assignee: Category: Target version: current: 2.1.0 ruby -v: 2.0.0 Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN =begin Timeout.timeout ������������������ rescue Exception ������������������������������������������������������������ ��������������������������������������������������������� Timeout::ExitException ������������������������������������������������������������ ��������� Timeout::Error ��������������������� ���) timeout 1 do begin sleep 3 rescue Exception => e puts e.class.superclass #=> "Timeout::ExitException" end end =end -- http://bugs.ruby-lang.org/