Exception: WiseGopher::ParamAlreadyDeclared

Inherits:
Error
  • Object
show all
Defined in:
lib/wise_gopher/errors.rb

Overview

raised when param are raw_param are declared with the same name

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(param_name) ⇒ ParamAlreadyDeclared

Returns a new instance of ParamAlreadyDeclared.



71
72
73
# File 'lib/wise_gopher/errors.rb', line 71

def initialize(param_name)
  @param_name = param_name
end

Instance Attribute Details

#param_nameObject (readonly)

Returns the value of attribute param_name.



69
70
71
# File 'lib/wise_gopher/errors.rb', line 69

def param_name
  @param_name
end

Instance Method Details

#messageObject



75
76
77
# File 'lib/wise_gopher/errors.rb', line 75

def message
  "'#{param_name}' is already declared either as 'raw_param' or standard 'param'."
end