Class: ErrorStalker::ExceptionGroup

Inherits:
Object
  • Object
show all
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

Store::Mongoid::ExceptionGroup

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#countObject

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

#digestObject

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_timestampObject

The first time this exception occurred



17
18
19
# File 'lib/error_stalker/exception_group.rb', line 17

def first_timestamp
  @first_timestamp
end

#machinesObject

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_reportObject

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_timestampObject

The most recent time this exception occurred



20
21
22
# File 'lib/error_stalker/exception_group.rb', line 20

def most_recent_timestamp
  @most_recent_timestamp
end

Instance Method Details

#typeObject



25
26
27
# File 'lib/error_stalker/exception_group.rb', line 25

def type
  most_recent_report.type unless most_recent_report.nil?
end