Exception: RaceGuard::ReportRaisedError
- Inherits:
-
StandardError
- Object
- StandardError
- RaceGuard::ReportRaisedError
- Defined in:
- lib/race_guard/report_raised_error.rb
Overview
Raised from RaceGuard.report when the event severity is :raise (after reporters run).
Instance Attribute Summary collapse
-
#event ⇒ Object
readonly
Returns the value of attribute event.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(event) ⇒ ReportRaisedError
constructor
A new instance of ReportRaisedError.
Constructor Details
#initialize(event) ⇒ ReportRaisedError
Returns a new instance of ReportRaisedError.
8 9 10 11 |
# File 'lib/race_guard/report_raised_error.rb', line 8 def initialize(event) @event = event super(self.class.(event)) end |
Instance Attribute Details
#event ⇒ Object (readonly)
Returns the value of attribute event.
6 7 8 |
# File 'lib/race_guard/report_raised_error.rb', line 6 def event @event end |
Class Method Details
.format_message(event) ⇒ Object
13 14 15 16 17 |
# File 'lib/race_guard/report_raised_error.rb', line 13 def self.(event) parts = ["[#{event.detector}] #{event.}"] parts << "(#{event.location})" if event.location && !event.location.empty? parts.join(' ') end |