123456789_123456789_123456789_123456789_123456789_

Exception: RBS::NonregularTypeAliasError

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(diagnostic:, location:) ⇒ NonregularTypeAliasError

[ GitHub ]

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

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

  super "#{Location.to_string location}: Nonregular generic type alias is prohibited: #{diagnostic.type_name}, #{diagnostic.nonregular_type}"
end

Instance Attribute Details

#diagnostic (readonly)

[ GitHub ]

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

attr_reader :diagnostic

#location (readonly)

[ GitHub ]

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

attr_reader :location