comparison Core/HttpServer/MongooseServer.cpp @ 327:4564e908bba9

handling of bad lexical casts in http server
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 08 Jan 2013 14:49:08 +0100
parents 64925c94825c
children c730f6e42848
comparison
equal deleted inserted replaced
326:e7276309b269 327:4564e908bba9
549 catch (OrthancException& e) 549 catch (OrthancException& e)
550 { 550 {
551 LOG(ERROR) << "MongooseServer Exception [" << e.What() << "]"; 551 LOG(ERROR) << "MongooseServer Exception [" << e.What() << "]";
552 output.SendHeader(Orthanc_HttpStatus_500_InternalServerError); 552 output.SendHeader(Orthanc_HttpStatus_500_InternalServerError);
553 } 553 }
554 catch (boost::bad_lexical_cast&)
555 {
556 LOG(ERROR) << "MongooseServer Exception: Bad lexical cast";
557 output.SendHeader(Orthanc_HttpStatus_500_InternalServerError);
558 }
554 } 559 }
555 else 560 else
556 { 561 {
557 output.SendHeader(Orthanc_HttpStatus_404_NotFound); 562 output.SendHeader(Orthanc_HttpStatus_404_NotFound);
558 } 563 }