* Util class for rpc.
*
*/
-public class RestconfInvokeOperationsUtil {
+public final class RestconfInvokeOperationsUtil {
private static final Logger LOG = LoggerFactory.getLogger(RestconfInvokeOperationsUtil.class);
if (response.getErrors().isEmpty()) {
return response;
}
- LOG.debug("RpcError message", response.getErrors());
+ LOG.debug("RpcError message {}", response.getErrors());
throw new RestconfDocumentedException("RPCerror message ", null, response.getErrors());
} catch (final CancellationException e) {
final String errMsg = "The operation was cancelled while executing.";
- LOG.debug("Cancel RpcExecution: " + errMsg, e);
- throw new RestconfDocumentedException(errMsg, ErrorType.RPC, ErrorTag.PARTIAL_OPERATION);
+ LOG.debug("Cancel RpcExecution: {}", errMsg, e);
+ throw new RestconfDocumentedException(errMsg, ErrorType.RPC, ErrorTag.PARTIAL_OPERATION, e);
}
}