Created
December 30, 2013 09:08
-
-
Save puneetpandey/8179646 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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