Exception: Google::Serverless::Exec::BadParameter
- Inherits:
-
UsageError
- Object
- StandardError
- UsageError
- Google::Serverless::Exec::BadParameter
- Defined in:
- lib/google/serverless/exec.rb
Overview
Exception raised when a parameter is malformed.
Instance Attribute Summary collapse
-
#param_name ⇒ Object
readonly
Returns the value of attribute param_name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(param, value) ⇒ BadParameter
constructor
A new instance of BadParameter.
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_name ⇒ Object (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 |
#value ⇒ Object (readonly)
Returns the value of attribute value.
287 288 289 |
# File 'lib/google/serverless/exec.rb', line 287 def value @value end |