void (int exitCode) { if (exitCode != 0) { String errorMessage = myErrors.toString(); if (errorMessage.isEmpty()) { errorMessage = GitBundle.message("git.error.exit", exitCode); } myException = new VcsException(GitBundle.message("log.parser.exception.message.error.command.line", errorMessage, myHandler.printableCommandLine())); } else { try { R record = myParser.finish(); if (record != null) { record.setUsedHandler(myHandler); myRecordConsumer.accept(record); } } catch (ProcessCanceledException pce) { throw pce; } catch (Throwable t) { myException = new VcsException(t); } } }