class RBS::ParsingError
Error class for errors raised during parsing.
Attributes
location
[R]
Location[untyped, untyped]
Public Class Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/errors.rb, line 58 def initialize(location, error_message, token_type) @location = location @error_message = error_message @token_type = token_type super "#{Location.to_string location}: Syntax error: #{error_message}, token=`#{location.source}` (#{token_type})" end
Calls superclass method
Exception::new
Public Instance Methods
() → String
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/sig/errors.rbs, line 38
def error_value: () -> String