Exception: Utility::ErrorMonitor::MonitoringError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/utility/error_monitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, tripped_by: nil) ⇒ MonitoringError

Returns a new instance of MonitoringError.



18
19
20
21
# File 'lib/utility/error_monitor.rb', line 18

def initialize(message = nil, tripped_by: nil)
  super("#{message}#{tripped_by.present? ? " Tripped by - #{tripped_by.class}: #{tripped_by.message}" : ''}")
  @tripped_by = tripped_by
end

Instance Attribute Details

#tripped_byObject

Returns the value of attribute tripped_by.



16
17
18
# File 'lib/utility/error_monitor.rb', line 16

def tripped_by
  @tripped_by
end