Exception: Omnibus::UnknownPlatformVersion

Inherits:
Error
  • Object
show all
Defined in:
lib/omnibus/exceptions.rb

Overview

Raised when Omnibus encounters a platform_version it does not know how to build/check/handle.

Instance Method Summary collapse

Constructor Details

#initialize(platform, version) ⇒ UnknownPlatformVersion

Returns a new instance of UnknownPlatformVersion



197
198
199
# File 'lib/omnibus/exceptions.rb', line 197

def initialize(platform, version)
  @platform, @version = platform, version
end

Instance Method Details

#to_sObject



201
202
203
204
205
206
# File 'lib/omnibus/exceptions.rb', line 201

def to_s
  <<-EOH
Unknown platform version `#{@version}' for #{@platform}!
I do not know how to proceed!"
EOH
end