The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

ZooKeeper::Error

DESCRIPTION

A Throwable class for ZooKeeper exceptions.

SYNOPSIS

    ZooKeeper::Error->throw({
        code    => ZNONODE,
        error   => 'no node',
        message => "Tried to delete a node that does not exist",
    })

ATTRIBUTES

code

The error code returned by the ZooKeeper C library. See ZooKeeper::Constants for possible error codes. This is returned when ZooKeeper::Error's are numified.

error

The string corresponding to the ZooKeeper error code, usually given by ZooKeeper::Constant::zerror($code)

message

A descriptive error message for the exception. This is returned when ZooKeeper::Error's are stringified.