Exception: Aws::Templates::ParameterMethodNameConflict
- Inherits:
-
ParametrizedDSLError
- Object
- StandardError
- ParametrizedDSLError
- Aws::Templates::ParameterMethodNameConflict
- Defined in:
- lib/aws/templates/exceptions.rb
Overview
A regular method and a parameter have the same name in a class
A parameter was specified with the same name as exsiting method in the class or in an ancestor of the class.
Instance Attribute Summary collapse
-
#method_object ⇒ Object
readonly
Method object of the method specified.
Instance Method Summary collapse
-
#initialize(target_method) ⇒ ParameterMethodNameConflict
constructor
A new instance of ParameterMethodNameConflict.
Constructor Details
#initialize(target_method) ⇒ ParameterMethodNameConflict
Returns a new instance of ParameterMethodNameConflict.
61 62 63 64 65 66 67 68 |
# File 'lib/aws/templates/exceptions.rb', line 61 def initialize(target_method) @method_object = target_method super( "Parameter name #{target_method.name} clashes with a method name in " \ "#{target_method.owner.name}" ) end |
Instance Attribute Details
#method_object ⇒ Object (readonly)
Method object of the method specified
59 60 61 |
# File 'lib/aws/templates/exceptions.rb', line 59 def method_object @method_object end |