Creates an appropriate HBaseException for the given type. When we de-serialize an exception from the wire, we're given a string as a class name, which we use here to map to an appropriate subclass of HBaseException, for which we create an instance that we return. @param request The R
(final HBaseRpc request,
final String type,
final String msg)
| 1788 | * exception, typically carrying a stringified stack trace. |
| 1789 | */ |
| 1790 | private static final HBaseException makeException(final HBaseRpc request, |
| 1791 | final String type, |
| 1792 | final String msg) { |
| 1793 | final HBaseException exc = REMOTE_EXCEPTION_TYPES.get(type); |
| 1794 | if (exc != null) { |
| 1795 | return exc.make(msg, request); |
| 1796 | } else { |
| 1797 | return new RemoteException(type, msg); |
| 1798 | } |
| 1799 | } |
| 1800 | |
| 1801 | /** |
| 1802 | * Decodes an exception from HBase 0.95 and up. |
no test coverage detected