Exception: Utility::ErrorMonitor::MonitoringError
- Inherits:
-
StandardError
- Object
- StandardError
- Utility::ErrorMonitor::MonitoringError
- Defined in:
- lib/utility/error_monitor.rb
Direct Known Subclasses
MaxErrorsExceededError, MaxErrorsInWindowExceededError, MaxSuccessiveErrorsExceededError
Instance Attribute Summary collapse
-
#tripped_by ⇒ Object
Returns the value of attribute tripped_by.
Instance Method Summary collapse
-
#initialize(message = nil, tripped_by: nil) ⇒ MonitoringError
constructor
A new instance of MonitoringError.
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( = nil, tripped_by: nil) super("#{}#{tripped_by.present? ? " Tripped by - #{tripped_by.class}: #{tripped_by.}" : ''}") @tripped_by = tripped_by end |
Instance Attribute Details
#tripped_by ⇒ Object
Returns the value of attribute tripped_by.
16 17 18 |
# File 'lib/utility/error_monitor.rb', line 16 def tripped_by @tripped_by end |