Exception: Mutineer::ConcurrentRunError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mutineer/file_swap.rb

Overview

Raised when another process already holds exclusive ownership of a source file. Aborting beats silently restoring (or capturing) the other run's mutant.

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ ConcurrentRunError

Parameters:

  • path (String) —

    the source file the other run already owns.



12
13
14
# File 'lib/mutineer/file_swap.rb', line 12

def initialize(path)
  super("another mutineer run owns #{path} — aborting to avoid corrupting the source file.")
end