Skip to content

Commit

Permalink
tweak the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Darrick Wiebe committed Sep 22, 2011
1 parent e5f26f5 commit cfaa92e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ source of information at the [Exceptional Ruby](http://exceptionalruby.com/) sit
The best way to use it is to simply add the following line of code to The best way to use it is to simply add the following line of code to
your project: your project:


require 'nested_exceptions/global' require 'nested_exceptions/global'


That includes the NestedExceptions module in all of Ruby's base That includes the NestedExceptions module in all of Ruby's base
exception classes (except the Exception root class), magically enabling exception classes (except the Exception root class), magically enabling
Expand All @@ -28,11 +28,11 @@ you to debug the trickiest, buggiest libraries.
If you want to try it out without extending Ruby's exception classes, If you want to try it out without extending Ruby's exception classes,
you can also do the following: you can also do the following:


require 'nested_exceptions' require 'nested_exceptions'


class MyException < StandardError class MyException < StandardError
include NestedExceptions include NestedExceptions
end end


That will only extend your class and leave the rest of the exception That will only extend your class and leave the rest of the exception
classes untouched. classes untouched.
Expand All @@ -43,14 +43,14 @@ Yes. A bit of extra information is added to your backtraces. In addition
to the standard backtrace, you'll get a little bit of nesting to the standard backtrace, you'll get a little bit of nesting
information. information.


ruby examples/example.rb original `ruby examples/example.rb original`


examples/example.rb:32:in `rescue in double_bug': oops (RuntimeError) examples/example.rb:32:in `rescue in double_bug': oops (RuntimeError)
from examples/example.rb:30:in `double_bug' from examples/example.rb:30:in `double_bug'
from examples/example.rb:42:in `<main>' from examples/example.rb:42:in `<main>'




ruby examples/example.rb nested `ruby examples/example.rb nested`


examples/example.rb:30:in `rescue in double_bug': oops (RuntimeError) examples/example.rb:30:in `rescue in double_bug': oops (RuntimeError)
from --- cause: ErrorSpec::InternalError: problem from --- cause: ErrorSpec::InternalError: problem
Expand Down

0 comments on commit cfaa92e

Please sign in to comment.