Exception: SimpleCovMcp::CoverageDataStaleError
- Inherits:
-
CoverageDataError
- Object
- StandardError
- Error
- CoverageDataError
- SimpleCovMcp::CoverageDataStaleError
- Defined in:
- lib/simplecov_mcp/errors.rb
Overview
Coverage data is present but appears stale compared to source files
Instance Attribute Summary collapse
-
#cov_len ⇒ Object
readonly
Returns the value of attribute cov_len.
-
#cov_timestamp ⇒ Object
readonly
Returns the value of attribute cov_timestamp.
-
#file_mtime ⇒ Object
readonly
Returns the value of attribute file_mtime.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#resultset_path ⇒ Object
readonly
Returns the value of attribute resultset_path.
-
#src_len ⇒ Object
readonly
Returns the value of attribute src_len.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message = nil, original_error = nil, file_path: nil, file_mtime: nil, cov_timestamp: nil, src_len: nil, cov_len: nil, resultset_path: nil) ⇒ CoverageDataStaleError
constructor
A new instance of CoverageDataStaleError.
- #user_friendly_message ⇒ Object
Constructor Details
#initialize(message = nil, original_error = nil, file_path: nil, file_mtime: nil, cov_timestamp: nil, src_len: nil, cov_len: nil, resultset_path: nil) ⇒ CoverageDataStaleError
Returns a new instance of CoverageDataStaleError.
96 97 98 99 100 101 102 103 104 105 |
# File 'lib/simplecov_mcp/errors.rb', line 96 def initialize( = nil, original_error = nil, file_path: nil, file_mtime: nil, cov_timestamp: nil, src_len: nil, cov_len: nil, resultset_path: nil) @file_path = file_path @file_mtime = file_mtime @cov_timestamp = @src_len = src_len @cov_len = cov_len @resultset_path = resultset_path super( || , original_error) end |
Instance Attribute Details
#cov_len ⇒ Object (readonly)
Returns the value of attribute cov_len.
94 95 96 |
# File 'lib/simplecov_mcp/errors.rb', line 94 def cov_len @cov_len end |
#cov_timestamp ⇒ Object (readonly)
Returns the value of attribute cov_timestamp.
94 95 96 |
# File 'lib/simplecov_mcp/errors.rb', line 94 def @cov_timestamp end |
#file_mtime ⇒ Object (readonly)
Returns the value of attribute file_mtime.
94 95 96 |
# File 'lib/simplecov_mcp/errors.rb', line 94 def file_mtime @file_mtime end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path.
94 95 96 |
# File 'lib/simplecov_mcp/errors.rb', line 94 def file_path @file_path end |
#resultset_path ⇒ Object (readonly)
Returns the value of attribute resultset_path.
94 95 96 |
# File 'lib/simplecov_mcp/errors.rb', line 94 def resultset_path @resultset_path end |
#src_len ⇒ Object (readonly)
Returns the value of attribute src_len.
94 95 96 |
# File 'lib/simplecov_mcp/errors.rb', line 94 def src_len @src_len end |
Instance Method Details
#user_friendly_message ⇒ Object
107 108 109 |
# File 'lib/simplecov_mcp/errors.rb', line 107 def "Coverage data stale: #{}" + build_details end |