Method: Failbot::ExceptionFormat::Haystack.call
- Defined in:
- lib/failbot/exception_format/haystack.rb
.call(e) ⇒ Object
Format an exception.
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/failbot/exception_format/haystack.rb', line 7 def self.call(e) res = { 'class' => e.class.to_s, 'message' => e., 'backtrace' => Array(e.backtrace)[0,500].join("\n"), 'ruby' => RUBY_DESCRIPTION, 'created_at' => Time.now.utc.iso8601(6) } if cause = pretty_print_cause(e) res['cause'] = cause end res end |