Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stops rescuing Exception, rescues StandardError instead. #148

Merged
merged 1 commit into from Apr 20, 2015

Conversation

philnash
Copy link
Contributor

You shouldn't rescue Exception in Ruby. It will rescue NoMemoryError and Interrupt and others you don't really want to rescue from in this case. StandardError, which is the default when just using rescue, is better, but ideally this would rescue specific errors that we want to rescue from. Perhaps looking at Faraday's list of errors or this suggestion from Tammer Saleh would be better. The least we can do is stop rescuing Exception though.

@skimbrel
Copy link
Contributor

+1

philnash added a commit that referenced this pull request Apr 20, 2015
Stops rescuing Exception, rescues StandardError instead.
@philnash philnash merged commit fa4cf7d into twilio:master Apr 20, 2015
@philnash philnash deleted the dont-rescue-exception branch April 20, 2015 15:59
ajtack pushed a commit to ajtack/twilio-ruby that referenced this pull request Apr 28, 2017
Update java next-gen wireless/ snippets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants