Skip to content

Instantly share code, notes, and snippets.

@vadimvorotilov
Created December 2, 2014 15:33
Show Gist options
  • Save vadimvorotilov/0c0d70989c81e2dbd874 to your computer and use it in GitHub Desktop.
Save vadimvorotilov/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