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)
| 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 |
no test coverage detected