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.
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 what is returned when ZooKeeper::Error's are stringified.