Skip to content

Instantly share code, notes, and snippets.

@fantgeass
Created December 2, 2014 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fantgeass/0c0d70989c81e2dbd874 to your computer and use it in GitHub Desktop.
Save fantgeass/0c0d70989c81e2dbd874 to your computer and use it in GitHub Desktop.
how-to: exceptions in ruby
begin
fail "Oops";
rescue => error
raise if error.message != "Oops"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment