Module: Errbit::ErrorReport
- Defined in:
- lib/errbit/error_report.rb
Class Method Summary collapse
-
.build(exception) ⇒ Object
Builds a payload matching the ErrorReport schema in openapi/errbit-api.yaml.
Class Method Details
.build(exception) ⇒ Object
Builds a payload matching the ErrorReport schema in openapi/errbit-api.yaml.
9 10 11 12 13 14 15 16 17 |
# File 'lib/errbit/error_report.rb', line 9 def build(exception) { error: { class: exception.class.name, message: exception..to_s, backtrace: Backtrace.parse(exception) } } end |