Module: ShowMeTheObject::Exception
- Defined in:
- lib/show_me_the_object/exception.rb
Instance Attribute Summary collapse
-
#__raiser ⇒ Object
Returns the value of attribute __raiser.
Instance Method Summary collapse
Instance Attribute Details
#__raiser ⇒ Object
Returns the value of attribute __raiser.
5 6 7 |
# File 'lib/show_me_the_object/exception.rb', line 5 def __raiser @__raiser end |
Instance Method Details
#message ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/show_me_the_object/exception.rb', line 7 def raised_by = if __raiser.respond_to?(:ai) __raiser.ai else __raiser.inspect end "#{super}\nRaised by: \n#{raised_by}" end |