main.cpp 526 Bytes
Newer Older
1
#include <iostream>
Guolin Ke's avatar
Guolin Ke committed
2
3
4
#include <LightGBM/application.h>

int main(int argc, char** argv) {
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  try {
    LightGBM::Application app(argc, argv);
    app.Run();
  }
  catch (const std::exception& ex) {
    std::cerr << "Met Exceptions:" << std::endl;
    std::cerr << ex.what() << std::endl;
    exit(-1);
  }
  catch (const std::string& ex) {
    std::cerr << "Met Exceptions:" << std::endl;
    std::cerr << ex << std::endl;
    exit(-1);
  }
  catch (...) {
    std::cerr << "Unknown Exceptions" << std::endl;
    exit(-1);
  }
}