Marvin Humphrey > Lucy-0.4.1 > Lucy::Store::LockErr

Download:
Lucy-0.4.1.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.004001   Source  

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 Clownfish::Err isa Clownfish::Obj.

syntax highlighting: