Exception: MailgunCatcher::Notifier::EventError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mailgun_catcher/notifier/bugsnag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event) ⇒ EventError

Returns a new instance of EventError.



13
14
15
16
# File 'lib/mailgun_catcher/notifier/bugsnag.rb', line 13

def initialize(event)
  @event = event
  super(event.error_message)
end

Instance Attribute Details

#eventObject (readonly)

Returns the value of attribute event.



11
12
13
# File 'lib/mailgun_catcher/notifier/bugsnag.rb', line 11

def event
  @event
end

Instance Method Details

#bugsnag_contextObject



22
23
24
# File 'lib/mailgun_catcher/notifier/bugsnag.rb', line 22

def bugsnag_context
  'mailgun'
end

#bugsnag_grouping_hashObject



26
27
28
# File 'lib/mailgun_catcher/notifier/bugsnag.rb', line 26

def bugsnag_grouping_hash
  event.grouping_error_message
end

#bugsnag_meta_dataObject



18
19
20
# File 'lib/mailgun_catcher/notifier/bugsnag.rb', line 18

def 
  { event_details: event.event_data }
end