Guest User

Untitled

a guest
Feb 20th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. begin
  2. # code that raise an Error
  3. # or an Exception
  4. rescue StandardError => e
  5. # Exceptions are not rescued. But,
  6. # StandardError and subclasses
  7. # of StandardError are rescued
  8. puts e.message, e.backtrace,
  9. # puts e.full_message, e.backtrace_locations
  10. end
Add Comment
Please, Sign In to add comment