Exception: Google::Serverless::Exec::BadParameter

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

Overview

Exception raised when a parameter is malformed.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param, value) ⇒ BadParameter

Returns a new instance of BadParameter.



281
282
283
284
285
# File 'lib/google/serverless/exec.rb', line 281

def initialize param, value
  @param_name = param
  @value = value
  super "Bad value for #{param}: #{value}"
end

Instance Attribute Details

#param_nameObject (readonly)

Returns the value of attribute param_name.



286
287
288
# File 'lib/google/serverless/exec.rb', line 286

def param_name
  @param_name
end

#valueObject (readonly)

Returns the value of attribute value.



287
288
289
# File 'lib/google/serverless/exec.rb', line 287

def value
  @value
end