Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- begin
- # code that raise an Error
- # or an Exception
- rescue StandardError => e
- # Exceptions are not rescued. But,
- # StandardError and subclasses
- # of StandardError are rescued
- puts e.message, e.backtrace,
- # puts e.full_message, e.backtrace_locations
- end
Add Comment
Please, Sign In to add comment