- LOG.debug("No get-contexted-constant registration for context: {}", input.getContext());
- final RpcError rpcError = RpcResultBuilder.newError(ErrorType.APPLICATION, "missing-registration",
- "No get-constant rpc registration present.");
- final RpcResult<UnregisterBoundConstantOutput> result =
- RpcResultBuilder.<UnregisterBoundConstantOutput>failed().withRpcError(rpcError).build();
- return Futures.immediateFuture(result);
+ return RpcResultBuilder.<UnregisterBoundConstantOutput>failed().withError(
+ ErrorType.RPC, "data-missing", "No prior RPC was registered for " + input.getContext()).buildFuture();