Class: ErrorStalker::ExceptionGroup
- Inherits:
-
Object
- Object
- ErrorStalker::ExceptionGroup
- Defined in:
- lib/error_stalker/exception_group.rb
Overview
Container for information about a group of exceptions. This is used so that we don’t get overwhelmed by duplicate exceptions. Some Exceptional::Stores may subclass and override this class, but the attributes called out here should always be valid.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#count ⇒ Object
The number of times this exception has been reported.
-
#digest ⇒ Object
The unique identifier of this group.
-
#first_timestamp ⇒ Object
The first time this exception occurred.
-
#machines ⇒ Object
The list of machines that have seen this exception.
-
#most_recent_report ⇒ Object
The most recent ExceptionReport instance belonging to this group.
-
#most_recent_timestamp ⇒ Object
The most recent time this exception occurred.
Instance Method Summary collapse
Instance Attribute Details
#count ⇒ Object
The number of times this exception has been reported
7 8 9 |
# File 'lib/error_stalker/exception_group.rb', line 7 def count @count end |
#digest ⇒ Object
The unique identifier of this group. All similar exceptions should generate the same digest.
11 12 13 |
# File 'lib/error_stalker/exception_group.rb', line 11 def digest @digest end |
#first_timestamp ⇒ Object
The first time this exception occurred
17 18 19 |
# File 'lib/error_stalker/exception_group.rb', line 17 def @first_timestamp end |
#machines ⇒ Object
The list of machines that have seen this exception
14 15 16 |
# File 'lib/error_stalker/exception_group.rb', line 14 def machines @machines end |
#most_recent_report ⇒ Object
The most recent ExceptionReport instance belonging to this group
23 24 25 |
# File 'lib/error_stalker/exception_group.rb', line 23 def most_recent_report @most_recent_report end |
#most_recent_timestamp ⇒ Object
The most recent time this exception occurred
20 21 22 |
# File 'lib/error_stalker/exception_group.rb', line 20 def @most_recent_timestamp end |
Instance Method Details
#type ⇒ Object
25 26 27 |
# File 'lib/error_stalker/exception_group.rb', line 25 def type most_recent_report.type unless most_recent_report.nil? end |