MCPcopy Create free account
hub / github.com/catboost/catboost / HandleError

Method HandleError

library/cpp/getopt/small/last_getopt_parse_result.cpp:212–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

210 }
211
212 void TOptsParseResult::HandleError() const {
213 Cerr << CurrentExceptionMessage() << Endl;
214 if (Parser_.Get()) { // parser initializing can fail (and we get here, see Init)
215 if (Parser_->Opts_->FindLongOption("help") != nullptr) {
216 Cerr << "Try '" << Parser_->ProgramName_ << " --help' for more information." << Endl;
217 } else {
218 PrintUsage();
219 }
220 }
221 exit(1);
222 }
223
224 void TOptsParseResultException::HandleError() const {
225 throw;

Callers

nothing calls this directly

Calls 4

CurrentExceptionMessageFunction · 0.85
exitFunction · 0.85
FindLongOptionMethod · 0.80
GetMethod · 0.45

Tested by

no test coverage detected