[ create a new paste ] login | about

Link: http://codepad.org/f4g9BIEa    [ raw code | output | fork ]

abinoam - Ruby, pasted on Jan 12:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
begin
  begin
    raise ArgumentError.new("teste")
  rescue Exception => e
    puts "Rescuing from something"
    # Uncomment this "raise" see the difference
    # After that comment it again and uncomment the "Process.exit!" line.
    # Process.exit!
    # raise
  end
rescue Exception => e
  puts "The higher level is rescuing too"
end

puts "After all code"


Output:
1
2
Rescuing from something
After all code


Create a new paste based on this one


Comments: