Exception: RBS::ParsingError
| Relationships & Source Files | |
| Super Chains via Extension / Inclusion / Inheritance | |
| Class Chain: 
          self,
           BaseError,
          StandardError | |
| Instance Chain: 
          self,
           BaseError,
          StandardError | |
| Inherits: | RBS::BaseError 
 | 
| Defined in: | lib/rbs/errors.rb | 
Class Method Summary
Instance Attribute Summary
- #error_message readonly
- #location readonly
- #token_type readonly
Instance Method Summary
Constructor Details
    .new(location, error_message, token_type)  ⇒ ParsingError 
  
# File 'lib/rbs/errors.rb', line 28
def initialize(location, , token_type) @location = location @error_message = @token_type = token_type super "#{Location.to_string location}: Syntax error: #{}, token=`#{location.source}` (#{token_type})" end
Instance Attribute Details
#error_message (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 25
attr_reader :
#location (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 24
attr_reader :location
#token_type (readonly)
[ GitHub ]# File 'lib/rbs/errors.rb', line 26
attr_reader :token_type
Instance Method Details
#error_value
[ GitHub ]# File 'lib/rbs/errors.rb', line 36
def error_value RBS.print_warning { "#{self.class.name}#error_value is deprecated and will be deleted in RBS 2.0. Consider using `location.source` instead." } location.source end
#token_str
[ GitHub ]# File 'lib/rbs/errors.rb', line 43
def token_str RBS.print_warning { "#{self.class.name}#token_str is deprecated and will be deleted in RBS 2.0. Consider using `token_type` instead." } token_type end