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, BaseError, StandardError
Inherits: RBS::BaseError
Defined in: lib/rbs/errors.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(diagnostic:, location:) ⇒ NonregularTypeAliasError

[ GitHub ]

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

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 438

attr_reader :diagnostic

#location (readonly)

[ GitHub ]

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

attr_reader :location