voldemort.store
Class ErrorCodeMapper

java.lang.Object
  extended by voldemort.store.ErrorCodeMapper

public class ErrorCodeMapper
extends java.lang.Object

Map error codes to exceptions and vice versa


Constructor Summary
ErrorCodeMapper()
           
 
Method Summary
 short getCode(java.lang.Class<? extends VoldemortException> c)
           
 short getCode(VoldemortException e)
           
 VoldemortException getError(short code, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorCodeMapper

public ErrorCodeMapper()
Method Detail

getError

public VoldemortException getError(short code,
                                   java.lang.String message)

getCode

public short getCode(VoldemortException e)

getCode

public short getCode(java.lang.Class<? extends VoldemortException> c)


Jay Kreps, Roshan Sumbaly, Alex Feinberg, Bhupesh Bansal, Lei Gao, Chinmay Soman, Vinoth Chandar, Zhongjie Wu