Exception: Familia::RebuildInProgressError

Inherits:
PersistenceError show all
Defined in:
lib/familia/errors.rb

Overview

Raised when a rebuild of a key is attempted while another rebuild holds the advisory lock for it. Rebuilds fail fast: they never wait or retry, because a second concurrent rebuild can only duplicate work and risk swapping a stale snapshot over a newer one.

Direct Known Subclasses

RebuildLockLostError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ RebuildInProgressError

Returns a new instance of RebuildInProgressError.



36
37
38
39
# File 'lib/familia/errors.rb', line 36

def initialize(key)
  @key = key
  super("Rebuild already in progress for #{key}")
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



34
35
36
# File 'lib/familia/errors.rb', line 34

def key
  @key
end