123456789_123456789_123456789_123456789_123456789_

Exception: RBS::SuperclassMismatchError

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

Class Method Summary

Instance Attribute Summary

Constructor Details

.new(name:, entry:) ⇒ SuperclassMismatchError

[ GitHub ]

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

def initialize(name:, entry:)
  @name = name
  @entry = entry
  super "#{Location.to_string entry.primary.decl.location}: Superclass mismatch: #{name}"
end

Instance Attribute Details

#entry (readonly)

[ GitHub ]

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

attr_reader :entry

#name (readonly)

[ GitHub ]

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

attr_reader :name