Exception: Mutineer::ConcurrentRunError
- Inherits:
-
StandardError
- Object
- StandardError
- Mutineer::ConcurrentRunError
- Defined in:
- lib/mutineer/file_swap.rb
Overview
Raised when a source file's backup already exists as FileSwap.with begins — a second mutineer run is racing on the same file (the backup path is shared and unlocked). Aborting beats silently leaving the tree mutated.
Instance Method Summary collapse
-
#initialize(backup) ⇒ ConcurrentRunError
constructor
A new instance of ConcurrentRunError.
Constructor Details
#initialize(backup) ⇒ ConcurrentRunError
Returns a new instance of ConcurrentRunError.
8 9 10 11 |
# File 'lib/mutineer/file_swap.rb', line 8 def initialize(backup) super("a backup already exists at #{backup} — is another mutineer run active " \ "in this directory? Aborting to avoid corrupting the source file.") end |