Exception: StructuredEventLogger::EndpointException

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, wrapped_exception) ⇒ EndpointException

Returns a new instance of EndpointException.



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

def initialize(name, wrapped_exception)
  @name, @wrapped_exception = name, wrapped_exception
  super("Endpoint #{name} failed - #{wrapped_exception.class.name}: #{wrapped_exception.message}")
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

#wrapped_exceptionObject (readonly)

Returns the value of attribute wrapped_exception.



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

def wrapped_exception
  @wrapped_exception
end