123456789_123456789_123456789_123456789_123456789_

Exception: RBS::UnknownMethodAliasError

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

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(type_name:, original_name:, aliased_name:, location:) ⇒ UnknownMethodAliasError

[ GitHub ]

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

def initialize(type_name:, original_name:, aliased_name:, location:)
  @type_name = type_name
  @original_name = original_name
  @aliased_name = aliased_name
  @location = location

  super "#{Location.to_string location}: Unknown method alias name: #{original_name} => #{aliased_name} (#{type_name})"
end

Instance Attribute Details

#aliased_name (readonly)

[ GitHub ]

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

attr_reader :aliased_name

#location (readonly)

[ GitHub ]

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

attr_reader :location

#original_name (readonly)

[ GitHub ]

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

attr_reader :original_name

#type_name (readonly)

[ GitHub ]

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

attr_reader :type_name