Exception: StructuredEventLogger::EventHandlingException

Inherits:
Error
  • Object
show all
Defined in:
lib/structured_event_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope, name, exceptions) ⇒ EventHandlingException

Returns a new instance of EventHandlingException.



9
10
11
12
# File 'lib/structured_event_logger.rb', line 9

def initialize(scope, name, exceptions)
  @scope, @name, @exceptions = scope, name, exceptions
  super("Failed to submit the #{scope}/#{name} event to the following endpoints: #{exceptions.keys.join(", ")}")
end

Instance Attribute Details

#exceptionsObject (readonly)

Returns the value of attribute exceptions.



8
9
10
# File 'lib/structured_event_logger.rb', line 8

def exceptions
  @exceptions
end