Exception: Familia::RebuildInProgressError
- Inherits:
-
PersistenceError
- Object
- RuntimeError
- Problem
- PersistenceError
- Familia::RebuildInProgressError
- 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
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key) ⇒ RebuildInProgressError
constructor
A new instance of RebuildInProgressError.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
34 35 36 |
# File 'lib/familia/errors.rb', line 34 def key @key end |