Exception: PackageResolved::MalformedFileError
- Inherits:
-
SpmVersionUpdates::ParseError
- Object
- StandardError
- SpmVersionUpdates::Error
- SpmVersionUpdates::ParseError
- PackageResolved::MalformedFileError
- Defined in:
- lib/spm_version_updates/package_resolved.rb
Overview
Raised when a ‘Package.resolved` file exists but is not valid JSON.
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path, parse_message) ⇒ MalformedFileError
constructor
A new instance of MalformedFileError.
Constructor Details
#initialize(path, parse_message) ⇒ MalformedFileError
Returns a new instance of MalformedFileError.
17 18 19 20 |
# File 'lib/spm_version_updates/package_resolved.rb', line 17 def initialize(path, ) @path = path super("Malformed Package.resolved at #{path}: #{}") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
15 16 17 |
# File 'lib/spm_version_updates/package_resolved.rb', line 15 def path @path end |