Skip to content

Instantly share code, notes, and snippets.

@jergason
Created August 26, 2011 19:37
Show Gist options
  • Save jergason/1174236 to your computer and use it in GitHub Desktop.
Save jergason/1174236 to your computer and use it in GitHub Desktop.
class Foo
include DataMapper::Resource
#ignore all the other stuff
def graph
begin
files = OtherCode::method_that_throws_exceptions
rescue
puts "rescued an error"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment