Module: Janky::Exception

Defined in:
lib/janky/exception.rb

Defined Under Namespace

Classes: Logger, Mock

Class Method Summary collapse

Class Method Details

.push(context) ⇒ Object



11
12
13
# File 'lib/janky/exception.rb', line 11

def self.push(context)
  @notifier.push(context)
end

.push_http_response(response) ⇒ Object



19
20
21
22
23
24
# File 'lib/janky/exception.rb', line 19

def self.push_http_response(response)
  push(
    :response_code => response.code.inspect,
    :response_body => response.body.inspect
  )
end

.report(exception, context = {}) ⇒ Object



7
8
9
# File 'lib/janky/exception.rb', line 7

def self.report(exception, context={})
  @notifier.report(exception, context)
end

.reset!Object



15
16
17
# File 'lib/janky/exception.rb', line 15

def self.reset!
  @notifier.reset!
end

.setup(notifier) ⇒ Object



3
4
5
# File 'lib/janky/exception.rb', line 3

def self.setup(notifier)
  @notifier = notifier
end