Exception: Cany::UnsupportedVersion

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

Overview

This exception is raised if the running Cany version satisfies not the required Cany version constraint from the canspec.

Instance Method Summary collapse

Constructor Details

#initialize(required_version) ⇒ UnsupportedVersion

Returns a new instance of UnsupportedVersion.



57
58
59
60
# File 'lib/cany/errors.rb', line 57

def initialize(required_version)
  super "The package specification requires Cany in version" \
    " \"#{required_version}\" but Cany has version \"#{Cany::VERSION}\""
end