MCPcopy Create free account
hub / github.com/OpenTSDB/asynchbase / generateException

Method generateException

test/PBufResponses.java:207–210  ·  view source on GitHub ↗

Return an exception for a multi-action batched RPC @param ex The exception to encode @param i The index of the parent RPC in the batch @return The exception

(final Throwable ex, final int i)

Source from the content-addressed store, hash-verified

205 * @return The exception
206 */
207 static ResultOrException generateException(final Throwable ex, final int i) {
208 return ResultOrException.newBuilder()
209 .setException(buildException(ex)).setIndex(i).build();
210 }
211
212 /**
213 * Override that returns an exception with the proper HBase class name for a

Calls 2

buildExceptionMethod · 0.95
writeToBufferMethod · 0.95

Tested by

no test coverage detected