Author image Marvin Humphrey
and 1 contributors

NAME

KinoSearch::Store::LockErr - Lock exception.

SYNOPSIS

    while (1) {
        my $bg_merger = eval {
            KinoSearch::Index::BackgroundMerger->new( index => $index );
        };
        if ( blessed($@) and $@->isa("KinoSearch::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

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

COPYRIGHT AND LICENSE

Copyright 2005-2010 Marvin Humphrey

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.