Exception: PackageResolved::MalformedFileError

Inherits:
StandardError
  • Object
show all
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

Instance Method Summary collapse

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, parse_message)
  @path = path
  super("Malformed Package.resolved at #{path}: #{parse_message}")
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



14
15
16
# File 'lib/spm_version_updates/package_resolved.rb', line 14

def path
  @path
end