Module: Achoo::UI::ExceptionHandling
- Included in:
- App, ICal, Plugin::Awake, Plugin::Ical, Plugin::VCS, RegisterHours
- Defined in:
- lib/achoo/ui/exception_handling.rb
Instance Method Summary collapse
- #get_exception_reason(e) ⇒ Object
- #handle_exception(user_message, e) ⇒ Object
- #handle_fatal_exception(user_message, e) ⇒ Object
Instance Method Details
#get_exception_reason(e) ⇒ Object
16 17 18 |
# File 'lib/achoo/ui/exception_handling.rb', line 16 def get_exception_reason(e) "\nType:\t" + e.class.to_s + "\nReason: \n\t" + e..gsub("\n", "\n\t") + "\n---\n\t" + e.backtrace.join("\n\t") end |