org.apache.bookkeeper.client
Class BKException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.bookkeeper.client.BKException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BKException.BKBookieException, BKException.BKBookieHandleNotAvailableException, BKException.BKDigestMatchException, BKException.BKDigestNotInitializedException, BKException.BKIllegalOpException, BKException.BKNoSuchLedgerExistsException, BKException.BKNotEnoughBookiesException, BKException.BKQuorumException, BKException.BKReadException

public abstract class BKException
extends Exception

Implements BookKeeper exceptions.

See Also:
Serialized Form

Nested Class Summary
static class BKException.BKBookieException
           
static class BKException.BKBookieHandleNotAvailableException
           
static class BKException.BKDigestMatchException
           
static class BKException.BKDigestNotInitializedException
           
static class BKException.BKIllegalOpException
           
static class BKException.BKNoSuchLedgerExistsException
           
static class BKException.BKNotEnoughBookiesException
           
static class BKException.BKQuorumException
           
static class BKException.BKReadException
           
static interface BKException.Code
           
 
Constructor Summary
BKException(int code)
           
 
Method Summary
static BKException create(int code)
           
 int getCode()
           
 String getMessage(int code)
           
 void setCode(int code)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BKException

public BKException(int code)
Method Detail

create

public static BKException create(int code)

setCode

public void setCode(int code)

getCode

public int getCode()

getMessage

public String getMessage(int code)