Exception: RailsParam::InvalidParameterError
- Inherits:
-
StandardError
- Object
- StandardError
- RailsParam::InvalidParameterError
- Defined in:
- lib/rails_param/invalid_parameter_error.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#param ⇒ Object
Returns the value of attribute param.
Instance Method Summary collapse
-
#initialize(message, param: nil, options: {}) ⇒ InvalidParameterError
constructor
A new instance of InvalidParameterError.
- #message ⇒ Object
Constructor Details
#initialize(message, param: nil, options: {}) ⇒ InvalidParameterError
Returns a new instance of InvalidParameterError.
5 6 7 8 9 |
# File 'lib/rails_param/invalid_parameter_error.rb', line 5 def initialize(, param: nil, options: {}) self.param = param self. = super() end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
3 4 5 |
# File 'lib/rails_param/invalid_parameter_error.rb', line 3 def @options end |
#param ⇒ Object
Returns the value of attribute param.
3 4 5 |
# File 'lib/rails_param/invalid_parameter_error.rb', line 3 def param @param end |
Instance Method Details
#message ⇒ Object
11 12 13 14 15 |
# File 'lib/rails_param/invalid_parameter_error.rb', line 11 def return [:message] if .is_a?(Hash) && .key?(:message) super end |