Exception: ConnectorsShared::MonitoringError
- Inherits:
-
StandardError
- Object
- StandardError
- ConnectorsShared::MonitoringError
- Defined in:
- lib/connectors_shared/errors.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.
63 64 65 66 |
# File 'lib/connectors_shared/errors.rb', line 63 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.
61 62 63 |
# File 'lib/connectors_shared/errors.rb', line 61 def tripped_by @tripped_by end |