123456789_123456789_123456789_123456789_123456789_

Exception: RBS::VariableDuplicationError

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, DefinitionError, BaseError, StandardError
Instance Chain:
Inherits: RBS::DefinitionError
Defined in: lib/rbs/errors.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(type_name:, variable_name:, location:) ⇒ VariableDuplicationError

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 332

def initialize(type_name:, variable_name:, location:)
  @type_name = type_name
  @variable_name = variable_name
  @location = location

  super "#{Location.to_string location}: Duplicated #{kind} variable name `#{variable_name}` in `#{type_name}`"
end

Instance Attribute Details

#location (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 330

attr_reader :location

#type_name (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 328

attr_reader :type_name

#variable_name (readonly)

[ GitHub ]

  
# File 'lib/rbs/errors.rb', line 329

attr_reader :variable_name