Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
begin
# Code to be executed here
# This part will be 'protected'
raise # Use this to raise any message
rescue
# Exception Handling, like argument error, 404
retry # use this if you want the begin block to be executed again, if execption occurs.
ensure
# This part will always get executed.
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment