Exception: RBS::GenericParameterMismatchError
- Inherits:
-
LoadingError
- Object
- StandardError
- BaseError
- LoadingError
- RBS::GenericParameterMismatchError
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#decl ⇒ Object
readonly
Returns the value of attribute decl.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:, decl:) ⇒ GenericParameterMismatchError
constructor
A new instance of GenericParameterMismatchError.
Constructor Details
#initialize(name:, decl:) ⇒ GenericParameterMismatchError
Returns a new instance of GenericParameterMismatchError.
351 352 353 354 355 |
# File 'lib/rbs/errors.rb', line 351 def initialize(name:, decl:) @name = name @decl = decl super "#{Location.to_string decl.location}: Generic parameters mismatch: #{name}" end |
Instance Attribute Details
#decl ⇒ Object (readonly)
Returns the value of attribute decl.
349 350 351 |
# File 'lib/rbs/errors.rb', line 349 def decl @decl end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
348 349 350 |
# File 'lib/rbs/errors.rb', line 348 def name @name end |