ruby沉思录(2)

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

你可能感兴趣的:(Ruby)