Exception: RBS::NonregularTypeAliasError
- Includes:
- DetailedMessageable
- Defined in:
- lib/rbs/errors.rb
Instance Attribute Summary collapse
-
#diagnostic ⇒ Object
readonly
Returns the value of attribute diagnostic.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(diagnostic:, location:) ⇒ NonregularTypeAliasError
constructor
A new instance of NonregularTypeAliasError.
Methods included from DetailedMessageable
Constructor Details
#initialize(diagnostic:, location:) ⇒ NonregularTypeAliasError
Returns a new instance of NonregularTypeAliasError.
498 499 500 501 502 503 |
# File 'lib/rbs/errors.rb', line 498 def initialize(diagnostic:, location:) @diagnostic = diagnostic @location = location super "#{Location.to_string location}: Nonregular generic type alias is prohibited: #{diagnostic.type_name}, #{diagnostic.nonregular_type}" end |
Instance Attribute Details
#diagnostic ⇒ Object (readonly)
Returns the value of attribute diagnostic.
495 496 497 |
# File 'lib/rbs/errors.rb', line 495 def diagnostic @diagnostic end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
496 497 498 |
# File 'lib/rbs/errors.rb', line 496 def location @location end |