Exception: RBS::SuperclassMismatchError
- Inherits:
-
DefinitionError
- Object
- StandardError
- ErrorBase
- DefinitionError
- RBS::SuperclassMismatchError
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#entry ⇒ Object
readonly
Returns the value of attribute entry.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, entry:) ⇒ SuperclassMismatchError
constructor
A new instance of SuperclassMismatchError.
Constructor Details
#initialize(name:, entry:) ⇒ SuperclassMismatchError
Returns a new instance of SuperclassMismatchError.
268 269 270 271 272 |
# File 'lib/rbs/errors.rb', line 268 def initialize(name:, entry:) @name = name @entry = entry super "#{Location.to_string entry.primary.decl.location}: Superclass mismatch: #{name}" end |
Instance Attribute Details
#entry ⇒ Object (readonly)
Returns the value of attribute entry.
266 267 268 |
# File 'lib/rbs/errors.rb', line 266 def entry @entry end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
265 266 267 |
# File 'lib/rbs/errors.rb', line 265 def name @name end |