Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

ruby catch all exceptions

begin
  raise 'This exception will be rescued!'
rescue StandardError => e
  puts "Rescued: #{e.inspect}"
end
 
PREVIOUS NEXT
Tagged: #ruby #catch #exceptions
ADD COMMENT
Topic
Name
9+4 =