예제 #1
0
파일: db.cpp 프로젝트: zhuk/mongo
 void initAndListen(int listenPort, const char *appserverLoc = null) {
     try { _initAndListen(listenPort, appserverLoc); }
     catch(...) {
         log() << " exception in initAndListen, terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
 }
예제 #2
0
파일: db.cpp 프로젝트: gilles/mongo
 void initAndListen(int listenPort, const char *appserverLoc = NULL) {
     try { _initAndListen(listenPort, appserverLoc); }
     catch ( std::exception &e ) {
         log() << "exception in initAndListen std::exception: " << e.what() << ", terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
     catch ( int& n ){
         log() << "exception in initAndListen int: " << n << ", terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
     catch(...) {
         log() << "exception in initAndListen, terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
 }
예제 #3
0
파일: db.cpp 프로젝트: judahschvimer/mongo
ExitCode initAndListen(int listenPort) {
    try {
        return _initAndListen(listenPort);
    } catch (DBException& e) {
        log() << "exception in initAndListen: " << e.toString() << ", terminating";
        return EXIT_UNCAUGHT;
    } catch (std::exception& e) {
        log() << "exception in initAndListen std::exception: " << e.what() << ", terminating";
        return EXIT_UNCAUGHT;
    } catch (int& n) {
        log() << "exception in initAndListen int: " << n << ", terminating";
        return EXIT_UNCAUGHT;
    } catch (...) {
        log() << "exception in initAndListen, terminating";
        return EXIT_UNCAUGHT;
    }
}
예제 #4
0
파일: db.cpp 프로젝트: opinionaided/mongo
 void initAndListen(int listenPort) {
     try { 
         _initAndListen(listenPort); 
     }
     catch ( DBException &e ) {
         log() << "exception in initAndListen: " << e.toString() << ", terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
     catch ( std::exception &e ) {
         log() << "exception in initAndListen std::exception: " << e.what() << ", terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
     catch ( int& n ) {
         log() << "exception in initAndListen int: " << n << ", terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
     catch(...) {
         log() << "exception in initAndListen, terminating" << endl;
         dbexit( EXIT_UNCAUGHT );
     }
 }