Exception: OutdatedFrameworkBuildError

Inherits:
AppError
  • Object
show all
Defined in:
lib/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(framework_name, build_version, cartfile_resolved_version) ⇒ OutdatedFrameworkBuildError

Returns a new instance of OutdatedFrameworkBuildError.



27
28
29
30
31
# File 'lib/errors.rb', line 27

def initialize(framework_name, build_version, cartfile_resolved_version)
  @framework_name = framework_name
  @build_version = build_version
  @cartfile_resolved_version = cartfile_resolved_version
end

Instance Attribute Details

#build_versionObject (readonly)

Returns the value of attribute build_version.



25
26
27
# File 'lib/errors.rb', line 25

def build_version
  @build_version
end

#cartfile_resolved_versionObject (readonly)

Returns the value of attribute cartfile_resolved_version.



25
26
27
# File 'lib/errors.rb', line 25

def cartfile_resolved_version
  @cartfile_resolved_version
end

#framework_nameObject (readonly)

Returns the value of attribute framework_name.



25
26
27
# File 'lib/errors.rb', line 25

def framework_name
  @framework_name
end

Instance Method Details

#==(o) ⇒ Object



33
34
35
# File 'lib/errors.rb', line 33

def ==(o)
  self.class == o.class && state == o.state
end

#to_sObject



37
38
39
# File 'lib/errors.rb', line 37

def to_s
  "framework name: #{@framework_name}, build version: #{@build_version}, resolved version: #{@cartfile_resolved_version}"
end