class Exceptions::Backend

Public: Backend is an abstract class that documents the interface for an exception tracking backend.

Public Instance Methods

clear_context() click to toggle source

Public: Clear should clear the context.

Returns nothing.

# File lib/exceptions/backend.rb, line 29
def clear_context
end
context(ctx) click to toggle source

Public: Context can be used to set global context.

ctx - A Hash of contextual information.

Returns nothing.

# File lib/exceptions/backend.rb, line 23
def context(ctx)
end
notify(exception) click to toggle source

Public: Notify should be implemented by classes that inherit from Backend to do something with the exception. Implementers of this interface can optionally return a Result object which can include things like an exception id from an external service.

exception - An Exception object. options - A Hash of options.

Returns an object satisfying the Result interface.

# File lib/exceptions/backend.rb, line 14
def notify(exception)
  raise NotImplementedError
end