Exception: AppEngine::Exec::BadParameter
- Inherits:
-
UsageError
- Object
- StandardError
- UsageError
- AppEngine::Exec::BadParameter
- Defined in:
- lib/appengine/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.
272 273 274 275 276 |
# File 'lib/appengine/exec.rb', line 272 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.
277 278 279 |
# File 'lib/appengine/exec.rb', line 277 def param_name @param_name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
278 279 280 |
# File 'lib/appengine/exec.rb', line 278 def value @value end |