Class: ErrorStalker::Backend::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/error_stalker/backend/base.rb

Overview

The base class for exception logger backends. All backends should inherit from this class and implement the report method.

Direct Known Subclasses

InMemory, LogFile, Server

Instance Method Summary collapse

Instance Method Details

#report(exception_report) ⇒ Object

Store an exception report into this backend. Subclasses should override this method. exception_report is an ErrorStalker::ExceptionReport instance.

Raises:

  • (NotImplementedError)


10
11
12
# File 'lib/error_stalker/backend/base.rb', line 10

def report(exception_report)
  raise NotImplementedError, "This method must be overridden in subclasses"
end