com.basho.riak.client.plain
Class ConvertToCheckedExceptions

java.lang.Object
  extended by com.basho.riak.client.plain.ConvertToCheckedExceptions
All Implemented Interfaces:
RiakExceptionHandler

Deprecated. with the addition of a protocol buffers client in 0.14 all the existing REST client code should be in client.http.* this class has therefore been moved. Please use com.basho.riak.client.http.plain.ConvertToCheckedExceptions instead.

WARNING: This class will be REMOVED in the next version.

@Deprecated
public class ConvertToCheckedExceptions
extends Object
implements RiakExceptionHandler

Converts unchecked exceptions RiakIORuntimeException and RiakResponseRuntimeException to checked exceptions RiakIOException and RiakRuntimeException. Be careful that everywhere calling a RiakClient with this handler installed contains the appropriate throws declaration.

See Also:
ConvertToCheckedExceptions

Constructor Summary
ConvertToCheckedExceptions()
          Deprecated.  
 
Method Summary
 void handle(RiakIORuntimeException e)
          Deprecated. Throws a checked RiakIOException
 void handle(RiakResponseRuntimeException e)
          Deprecated. Throws a checked RiakResponseException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertToCheckedExceptions

public ConvertToCheckedExceptions()
Deprecated. 
Method Detail

handle

public void handle(RiakIORuntimeException e)
Deprecated. 
Throws a checked RiakIOException

Specified by:
handle in interface RiakExceptionHandler

handle

public void handle(RiakResponseRuntimeException e)
Deprecated. 
Throws a checked RiakResponseException

Specified by:
handle in interface RiakExceptionHandler


Copyright © 2012. All Rights Reserved.