-
-
Save douglasmartins7/3d1a2ba5964c9d0f2a7d25e5ade18f37 to your computer and use it in GitHub Desktop.
try catch in ruby
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
def method | |
#need implementations | |
#more | |
#more | |
rescue Exception => e | |
raise "Airline was not presented for this destination" | |
puts e.message | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment