Exception: StructuredEventLogger::EndpointException
- Defined in:
- lib/structured_event_logger.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#wrapped_exception ⇒ Object
readonly
Returns the value of attribute wrapped_exception.
Instance Method Summary collapse
-
#initialize(name, wrapped_exception) ⇒ EndpointException
constructor
A new instance of EndpointException.
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.}") end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/structured_event_logger.rb', line 8 def name @name end |
#wrapped_exception ⇒ Object (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 |