Class: Fog::Hyperv::Errors::VersionError

Inherits:
ServiceError
  • Object
show all
Defined in:
lib/fog/hyperv.rb

Overview

A version constrain was not matched

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(required_version, version, function) ⇒ VersionError

Returns a new instance of VersionError.



28
29
30
31
32
33
34
# File 'lib/fog/hyperv.rb', line 28

def initialize(required_version, version, function)
  @function = function
  @required_version = required_version
  @version = version

  super("#{function} requires at least Hyper-V v#{required_version}, you have v#{version}")
end

Instance Attribute Details

#functionObject (readonly)

Returns the value of attribute function.



26
27
28
# File 'lib/fog/hyperv.rb', line 26

def function
  @function
end

#required_versionObject (readonly)

Returns the value of attribute required_version.



26
27
28
# File 'lib/fog/hyperv.rb', line 26

def required_version
  @required_version
end

#versionObject (readonly)

Returns the value of attribute version.



26
27
28
# File 'lib/fog/hyperv.rb', line 26

def version
  @version
end