---
name: "Lucy::Store::LockErr"
section: "3pm"
platform: "linux"
package: "liblucy-perl"
version: "0.3.3-7+b1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/Lucy::Store::LockErr"
---

# Lucy::Store::LockErr(3pm)

Lock exception.

## NAME

Lucy::Store::LockErr - Lock exception.

## SYNOPSIS

```
    while (1) {
        my $bg_merger = eval {
            Lucy::Index::BackgroundMerger->new( index => $index );
        };
        if ( blessed($@) and $@->isa("Lucy::Store::LockErr") ) {
            warn "Retrying...\n";
        }
        elsif (!$bg_merger) {
            # Re-throw.
            die "Failed to open BackgroundMerger: $@";
        }
        ...
    }
```

## DESCRIPTION

LockErr is a subclass of Err which indicates that a file locking problem occurred.

## INHERITANCE

Lucy::Store::LockErr isa Lucy::Object::Err isa Lucy::Object::Obj.
