Exception: Reaction::ParamError
- Inherits:
-
StandardError
- Object
- StandardError
- Reaction::ParamError
- Defined in:
- lib/reaction/errors/param_error.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#param ⇒ Object
Returns the value of attribute param.
Instance Method Summary collapse
-
#initialize(param, message = nil) ⇒ ParamError
constructor
A new instance of ParamError.
Constructor Details
#initialize(param, message = nil) ⇒ ParamError
Returns a new instance of ParamError.
6 7 8 9 |
# File 'lib/reaction/errors/param_error.rb', line 6 def initialize(param, = nil) @param = param @message = || "Invalid value for param: #{param}." end |
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message.
4 5 6 |
# File 'lib/reaction/errors/param_error.rb', line 4 def @message end |
#param ⇒ Object
Returns the value of attribute param.
3 4 5 |
# File 'lib/reaction/errors/param_error.rb', line 3 def param @param end |