comparison OrthancServer/main.cpp @ 1245:aea9277dee75

catch more exceptions (patch from Valdas Rapsevicius)
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Dec 2014 12:42:50 +0100
parents f1c01451a8ee
children 32fcc5dc7562
comparison
equal deleted inserted replaced
1244:a0e420c5f2b8 1245:aea9277dee75
693 { 693 {
694 break; 694 break;
695 } 695 }
696 } 696 }
697 } 697 }
698 catch (OrthancException& e) 698 catch (const OrthancException& e)
699 { 699 {
700 LOG(ERROR) << "Uncaught exception, stopping now: [" << e.What() << "]"; 700 LOG(ERROR) << "Uncaught exception, stopping now: [" << e.What() << "]";
701 status = -1; 701 status = -1;
702 } 702 }
703 catch (const std::exception& e)
704 {
705 LOG(ERROR) << "Uncaught exception, stopping now: [" << e.what() << "]";
706 status = -1;
707 }
708 catch (const std::string& s)
709 {
710 LOG(ERROR) << "Uncaught exception, stopping now: [" << s << "]";
711 status = -1;
712 }
703 catch (...) 713 catch (...)
704 { 714 {
705 LOG(ERROR) << "Native exception, stopping now. Check your plugins, if any."; 715 LOG(ERROR) << "Native exception, stopping now. Check your plugins, if any.";
706 status = -1; 716 status = -1;
707 } 717 }