Exception: Reaction::ParamError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/reaction/errors/param_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, message = nil)
  @param = param
  @message = message || "Invalid value for param: #{param}."
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



4
5
6
# File 'lib/reaction/errors/param_error.rb', line 4

def message
  @message
end

#paramObject

Returns the value of attribute param.



3
4
5
# File 'lib/reaction/errors/param_error.rb', line 3

def param
  @param
end