Class: Fog::Hyperv::Errors::VersionError
- Inherits:
-
ServiceError
- Object
- Errors::Error
- ServiceError
- Fog::Hyperv::Errors::VersionError
- Defined in:
- lib/fog/hyperv.rb
Overview
A version constrain was not matched
Instance Attribute Summary collapse
-
#function ⇒ Object
readonly
Returns the value of attribute function.
-
#required_version ⇒ Object
readonly
Returns the value of attribute required_version.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(required_version, version, function) ⇒ VersionError
constructor
A new instance of VersionError.
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
#function ⇒ Object (readonly)
Returns the value of attribute function.
26 27 28 |
# File 'lib/fog/hyperv.rb', line 26 def function @function end |
#required_version ⇒ Object (readonly)
Returns the value of attribute required_version.
26 27 28 |
# File 'lib/fog/hyperv.rb', line 26 def required_version @required_version end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
26 27 28 |
# File 'lib/fog/hyperv.rb', line 26 def version @version end |