Exception: OperationInProgressError

Inherits:
RuntimeError
  • Object
show all
Defined in:
exceptions.rb

Overview

Raised when another Homebrew operation is already in progress.

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ OperationInProgressError

Returns a new instance of OperationInProgressError.



347
348
349
350
351
352
353
354
355
# File 'exceptions.rb', line 347

def initialize(name)
  message = <<~EOS
    Operation already in progress for #{name}
    Another active Homebrew process is already using #{name}.
    Please wait for it to finish or terminate it to continue.
  EOS

  super message
end