Module: ExceptionEngine

Defined in:
lib/exception_engine/notice.rb,
lib/exception_engine.rb,
lib/exception_engine/engine.rb,
lib/exception_engine/version.rb,
lib/exception_engine/backtrace.rb,
app/models/exception_engine/data.rb,
lib/exception_engine/exception_middleware.rb,
app/models/exception_engine/backtrace_data.rb

Overview

Credits to Thoughtbot’s Hoptoad::Backtrace

Defined Under Namespace

Classes: Backtrace, BacktraceData, Data, Engine, ExceptionMiddleware, Notice

Constant Summary collapse

VERSION =
"0.3.3".freeze

Class Method Summary collapse

Class Method Details

.exceptionize(exception, opts = {}) ⇒ Object

Stores the notice exception

See Also:



21
22
23
24
# File 'lib/exception_engine.rb', line 21

def exceptionize(exception, opts = {})
  notice = build_notice_for(exception, opts)
  ExceptionEngine::Data.store!(notice)
end