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

Method makeException

src/RegionClient.java:1790–1799  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 3

deserializeExceptionMethod · 0.95
decodeExceptionMethod · 0.95
decodeExceptionPairMethod · 0.95

Calls 2

makeMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected