Skip to content

Instantly share code, notes, and snippets.

@makevoid
Created May 16, 2009 16:17
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 makevoid/112726 to your computer and use it in GitHub Desktop.
Save makevoid/112726 to your computer and use it in GitHub Desktop.
exception.info
class StandardError
def info
"#{self.class}: #{message}#$/#{backtrace.join($/)}"
end
end
begin
raise "Kaboom!"
rescue RuntimeError => e
puts e.info
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment