Exception: OperationInProgressError

Inherits:
RuntimeError
  • Object
show all
Defined in:
brew/Library/Homebrew/exceptions.rb

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ OperationInProgressError

Returns a new instance of OperationInProgressError



285
286
287
288
289
290
291
292
293
# File 'brew/Library/Homebrew/exceptions.rb', line 285

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