123456789_123456789_123456789_123456789_123456789_

Exception: RBS::RecursiveTypeAliasError

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

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(alias_names:, location:) ⇒ RecursiveTypeAliasError

[ GitHub ]

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

def initialize(alias_names:, location:)
  @alias_names = alias_names
  @location = location

  super "#{Location.to_string location}: Recursive type alias definition found for: #{name}"
end

Instance Attribute Details

#alias_names (readonly)

[ GitHub ]

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

attr_reader :alias_names

#location (readonly)

[ GitHub ]

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

attr_reader :location

Instance Method Details

#name

[ GitHub ]

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

def name
  @alias_names.map(&:name).join(', ')
end