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 317

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 315

attr_reader :entry

#name (readonly)

[ GitHub ]

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

attr_reader :name