Exception: Google::Serverless::Exec::NoSuchVersion
- Inherits:
-
UsageError
- Object
- StandardError
- UsageError
- Google::Serverless::Exec::NoSuchVersion
- Defined in:
- lib/google/serverless/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
-
#service ⇒ Object
readonly
Returns the value of attribute service.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(service, version = nil) ⇒ NoSuchVersion
constructor
A new instance of NoSuchVersion.
Constructor Details
#initialize(service, version = nil) ⇒ NoSuchVersion
Returns a new instance of NoSuchVersion.
326 327 328 329 330 331 332 333 334 |
# File 'lib/google/serverless/exec.rb', line 326 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
#service ⇒ Object (readonly)
Returns the value of attribute service.
335 336 337 |
# File 'lib/google/serverless/exec.rb', line 335 def service @service end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
336 337 338 |
# File 'lib/google/serverless/exec.rb', line 336 def version @version end |