Exception: Committee::ParameterDeserializationError
- Inherits:
-
InvalidRequest
- Object
- StandardError
- Error
- InvalidRequest
- Committee::ParameterDeserializationError
- Defined in:
- lib/committee/errors.rb
Instance Attribute Summary collapse
-
#parameter_name ⇒ Object
readonly
Returns the value of attribute parameter_name.
-
#raw_value ⇒ Object
readonly
Returns the value of attribute raw_value.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
Attributes inherited from InvalidRequest
Instance Method Summary collapse
-
#initialize(param_name, style, raw_value, message) ⇒ ParameterDeserializationError
constructor
A new instance of ParameterDeserializationError.
Constructor Details
#initialize(param_name, style, raw_value, message) ⇒ ParameterDeserializationError
Returns a new instance of ParameterDeserializationError.
40 41 42 43 44 45 |
# File 'lib/committee/errors.rb', line 40 def initialize(param_name, style, raw_value, ) @parameter_name = param_name @style = style @raw_value = raw_value super("Parameter '#{param_name}' (style: #{style}): #{}") end |
Instance Attribute Details
#parameter_name ⇒ Object (readonly)
Returns the value of attribute parameter_name.
38 39 40 |
# File 'lib/committee/errors.rb', line 38 def parameter_name @parameter_name end |
#raw_value ⇒ Object (readonly)
Returns the value of attribute raw_value.
38 39 40 |
# File 'lib/committee/errors.rb', line 38 def raw_value @raw_value end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
38 39 40 |
# File 'lib/committee/errors.rb', line 38 def style @style end |