Exception: AppEngine::Exec::NoSuchVersion

Inherits:
UsageError
  • Object
show all
Defined in:
lib/appengine/exec.rb

Overview

Exception raised when the given version could not be found, or no versions at all could be found for the given service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(service, version = nil) ⇒ NoSuchVersion

Returns a new instance of NoSuchVersion.



317
318
319
320
321
322
323
324
325
# File 'lib/appengine/exec.rb', line 317

def initialize service, version = nil
  @service = service
  @version = version
  if version
    super "No such version \"#{version}\" for service \"#{service}\""
  else
    super "No versions found for service \"#{service}\""
  end
end

Instance Attribute Details

#serviceObject (readonly)

Returns the value of attribute service.



326
327
328
# File 'lib/appengine/exec.rb', line 326

def service
  @service
end

#versionObject (readonly)

Returns the value of attribute version.



327
328
329
# File 'lib/appengine/exec.rb', line 327

def version
  @version
end