Exception: org.apache.zookeeper.KeeperException
- @SuppressWarnings(value={"serial"})
- public abstract exception KeeperException
- extends Exception
Inheritance
Superclass tree:- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- org.apache.zookeeper.KeeperException
Methods
-
KeeperExceptiontop
public KeeperException(KeeperException.Code code) -
codetop
public KeeperException.Code code()Read the error Code for this exception -
createtop
public static KeeperException create(int code) -
createtop
-
createtop
All non-specific keeper exceptions should be constructed via this factory method in order to guarantee consistency in error codes and such. If you know the error code, then you should construct the special purpose exception directly. That will allow you to have the most specific possible declarations of what exceptions might actually be thrown. -
createtop
All non-specific keeper exceptions should be constructed via this factory method in order to guarantee consistency in error codes and such. If you know the error code, then you should construct the special purpose exception directly. That will allow you to have the most specific possible declarations of what exceptions might actually be thrown. -
getCodetop
public int getCode()Read the error code for this exception -
getMessagetop
Returns the detail message string of this throwable.- Override hierarchy:
- getMessage from Throwable
-
getPathtop
public String getPath()Read the path for this exception -
setCodetop
public void setCode(int code)Set the code for this exception
