- @Override
- public DOMRpcResult checkedGet() throws DOMRpcException {
- try {
- return get();
- } catch (InterruptedException | ExecutionException e) {
- // FIXME: Add exception mapping
- throw Throwables.propagate(e);
- }
- }
-
- @Override
- public DOMRpcResult checkedGet(@Nonnull final long timeout, final TimeUnit unit)
- throws TimeoutException, DOMRpcException {
- try {
- return get(timeout, unit);
- } catch (InterruptedException | ExecutionException e) {
- // FIXME: Add exception mapping
- throw Throwables.propagate(e);
- }
- }
-