Sha256: a3eed4fee6d14569e67ab53683f65772f14117d98d6fd1180c4ce0b10af3f6ee
Contents?: true
Size: 684 Bytes
Versions: 2
Compression:
Stored size: 684 Bytes
Contents
#### Simple Exception This example shows a simple ```Exception```. ```show.rb```: ```ruby require 'debug_helper' def foo exception = nil begin raise Exception.new('Boo!') rescue Exception => exception # Already saved. end DebugHelper.show(exception, 'My simple exception') end def bar foo end def baz bar end baz ``` The output shows details of the ```Exception```. ```show.yaml```: ```yaml --- Exception (message='My simple exception'): Exception#message: Boo! Exception#cause: Exception#backtrace: - show.rb:6:in `foo' - show.rb:14:in `bar' - show.rb:18:in `baz' - show.rb:21:in `<main>' ```
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
debug_helper-2.1.0 | markdown/readme/classes/exception/simple/show.md |
debug_helper-2.0.0 | markdown/readme/classes/exception/simple/show.md |