Exception: SimpleCovMcp::CoverageDataProjectStaleError
- Inherits:
-
CoverageDataError
- Object
- StandardError
- Error
- CoverageDataError
- SimpleCovMcp::CoverageDataProjectStaleError
- Defined in:
- lib/simplecov_mcp/errors.rb
Overview
Project-level stale coverage (global) — coverage timestamp older than one or more source files, or new tracked files missing from coverage.
Instance Attribute Summary collapse
-
#cov_timestamp ⇒ Object
readonly
Returns the value of attribute cov_timestamp.
-
#deleted_files ⇒ Object
readonly
Returns the value of attribute deleted_files.
-
#missing_files ⇒ Object
readonly
Returns the value of attribute missing_files.
-
#newer_files ⇒ Object
readonly
Returns the value of attribute newer_files.
-
#resultset_path ⇒ Object
readonly
Returns the value of attribute resultset_path.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, original_error = nil, cov_timestamp: nil, newer_files: [], missing_files: [], deleted_files: [], resultset_path: nil) ⇒ CoverageDataProjectStaleError
constructor
A new instance of CoverageDataProjectStaleError.
- #user_friendly_message ⇒ Object
Constructor Details
#initialize(message = nil, original_error = nil, cov_timestamp: nil, newer_files: [], missing_files: [], deleted_files: [], resultset_path: nil) ⇒ CoverageDataProjectStaleError
Returns a new instance of CoverageDataProjectStaleError.
138 139 140 141 142 143 144 145 146 |
# File 'lib/simplecov_mcp/errors.rb', line 138 def initialize( = nil, original_error = nil, cov_timestamp: nil, newer_files: [], missing_files: [], deleted_files: [], resultset_path: nil) super(, original_error) @cov_timestamp = @newer_files = Array(newer_files) @missing_files = Array(missing_files) @deleted_files = Array(deleted_files) @resultset_path = resultset_path end |
Instance Attribute Details
#cov_timestamp ⇒ Object (readonly)
Returns the value of attribute cov_timestamp.
136 137 138 |
# File 'lib/simplecov_mcp/errors.rb', line 136 def @cov_timestamp end |
#deleted_files ⇒ Object (readonly)
Returns the value of attribute deleted_files.
136 137 138 |
# File 'lib/simplecov_mcp/errors.rb', line 136 def deleted_files @deleted_files end |
#missing_files ⇒ Object (readonly)
Returns the value of attribute missing_files.
136 137 138 |
# File 'lib/simplecov_mcp/errors.rb', line 136 def missing_files @missing_files end |
#newer_files ⇒ Object (readonly)
Returns the value of attribute newer_files.
136 137 138 |
# File 'lib/simplecov_mcp/errors.rb', line 136 def newer_files @newer_files end |
#resultset_path ⇒ Object (readonly)
Returns the value of attribute resultset_path.
136 137 138 |
# File 'lib/simplecov_mcp/errors.rb', line 136 def resultset_path @resultset_path end |
Instance Method Details
#user_friendly_message ⇒ Object
148 149 150 151 |
# File 'lib/simplecov_mcp/errors.rb', line 148 def base = "Coverage data stale (project): #{ || }" base + build_details end |