exc/performing_action |
Public Methods |
Appends extra information to an exception about what was being done at the time the exception was raised.
Example:
performing_action('playing with Ruby') do
performing_action('doing some silly things') do
raise RuntimeError
end
end
#=> test.rb:3 RuntimeError: RuntimeError
while doing some silly things
while playing with Ruby
from test.rb:2:in `performing_action'
from test.rb:2
from test.rb:1: in `performing_action'
from test.rb:1
module ExceptionActions |
Public Methods |
message is an alias for to_s.
to_str is an alias for to_s.