Exception: RubyLsp::Requests::Support::InternalRuboCopError
- Inherits:
-
StandardError
- Object
- StandardError
- RubyLsp::Requests::Support::InternalRuboCopError
- Extended by:
- T::Sig
- Defined in:
- lib/ruby_lsp/requests/support/rubocop_runner.rb
Constant Summary collapse
- MESSAGE =
"An internal error occurred for the %s cop.\nUpdating to a newer version of RuboCop may solve this.\nFor more details, run RuboCop on the command line.\n"
Instance Method Summary collapse
-
#initialize(rubocop_error) ⇒ InternalRuboCopError
constructor
A new instance of InternalRuboCopError.
Constructor Details
#initialize(rubocop_error) ⇒ InternalRuboCopError
Returns a new instance of InternalRuboCopError.
29 30 31 32 |
# File 'lib/ruby_lsp/requests/support/rubocop_runner.rb', line 29 def initialize(rubocop_error) = format(MESSAGE, rubocop_error.cop.name) super() end |