ruby沈思録(2)
388 ワード
begin
# raise "fine"
# raise ArgumentError, "ok"
# raise SignalException
exit
rescue => e
p "cool"
p e.message
end
p "cool"
=begin
begin
exit
rescue Exception
p "fine"
end
p "cool"
=end
begin
# raise "fine"
# raise ArgumentError, "ok"
# raise SignalException
exit
rescue => e
p "cool"
p e.message
end
p "cool"
=begin
begin
exit
rescue Exception
p "fine"
end
p "cool"
=end