Exception: RBS::UnknownMethodAliasError
- Inherits:
-
DefinitionError
- Object
- StandardError
- ErrorBase
- DefinitionError
- RBS::UnknownMethodAliasError
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#aliased_name ⇒ Object
readonly
Returns the value of attribute aliased_name.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#original_name ⇒ Object
readonly
Returns the value of attribute original_name.
-
#type_name ⇒ Object
readonly
Returns the value of attribute type_name.
Instance Method Summary collapse
-
#initialize(type_name:, original_name:, aliased_name:, location:) ⇒ UnknownMethodAliasError
constructor
A new instance of UnknownMethodAliasError.
Constructor Details
#initialize(type_name:, original_name:, aliased_name:, location:) ⇒ UnknownMethodAliasError
Returns a new instance of UnknownMethodAliasError.
254 255 256 257 258 259 260 261 |
# File 'lib/rbs/errors.rb', line 254 def initialize(type_name:, original_name:, aliased_name:, location:) @type_name = type_name @original_name = original_name @aliased_name = aliased_name @location = location super "#{Location.to_string location}: Unknown method alias name: #{original_name} => #{aliased_name} (#{type_name})" end |
Instance Attribute Details
#aliased_name ⇒ Object (readonly)
Returns the value of attribute aliased_name.
251 252 253 |
# File 'lib/rbs/errors.rb', line 251 def aliased_name @aliased_name end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
252 253 254 |
# File 'lib/rbs/errors.rb', line 252 def location @location end |
#original_name ⇒ Object (readonly)
Returns the value of attribute original_name.
250 251 252 |
# File 'lib/rbs/errors.rb', line 250 def original_name @original_name end |
#type_name ⇒ Object (readonly)
Returns the value of attribute type_name.
249 250 251 |
# File 'lib/rbs/errors.rb', line 249 def type_name @type_name end |