class RubyLsp::Requests::Support::InternalRuboCopError Constants >MESSAGE Public Class Methods new(rubocop_error) Show source Calls superclass method # File lib/ruby_lsp/requests/support/rubocop_runner.rb, line 33 def initialize(rubocop_error) message = case rubocop_error when RuboCop::ErrorWithAnalyzedFileLocation format(MESSAGE, "for the #{rubocop_error.cop.name} cop") when StandardError format(MESSAGE, rubocop_error.message) end super(message) end