Exception: RBS::CyclicClassAliasDefinitionError
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
- .new(entry) ⇒ CyclicClassAliasDefinitionError constructor
Instance Attribute Summary
- #alias_entry readonly
Instance Method Summary
Constructor Details
.new(entry) ⇒ CyclicClassAliasDefinitionError
# File 'lib/rbs/errors.rb', line 550
def initialize(entry) @alias_entry = entry super "#{Location.to_string(entry.decl.location&.[](:old_name))}: A #{alias_entry.decl.new_name} is a cyclic definition" end
Instance Attribute Details
#alias_entry (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 548
attr_reader :alias_entry
Instance Method Details
#location
[ GitHub ]# File 'lib/rbs/errors.rb', line 556
def location @alias_entry.decl.location end