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

3
4
#include <iostream>

Guolin Ke's avatar
Guolin Ke committed
5
int main(int argc, char** argv) {
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);
  }
24
}