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, DetailedMessageable, 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 480

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 477

attr_reader :alias_names

#location (readonly)

[ GitHub ]

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

attr_reader :location

Instance Method Details

#name

[ GitHub ]

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

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