com.basho.riak.client.http.plain
Class ConvertToCheckedExceptions
java.lang.Object
com.basho.riak.client.http.plain.ConvertToCheckedExceptions
- All Implemented Interfaces:
- RiakExceptionHandler
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConvertToCheckedExceptions
public ConvertToCheckedExceptions()
handle
public void handle(RiakIORuntimeException e)
- Throws a checked
RiakIOException
- Specified by:
handle
in interface RiakExceptionHandler
handle
public void handle(RiakResponseRuntimeException e)
- Throws a checked
RiakResponseException
- Specified by:
handle
in interface RiakExceptionHandler
Copyright © 2012. All Rights Reserved.