Exception: PackageResolved::MalformedFileError
- Inherits:
-
StandardError
- Object
- StandardError
- 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.
16 17 18 19 |
# File 'lib/spm_version_updates/package_resolved.rb', line 16 def initialize(path, ) @path = path super("Malformed Package.resolved at #{path}: #{}") end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
14 15 16 |
# File 'lib/spm_version_updates/package_resolved.rb', line 14 def path @path end |