Mercurial > hg > orthanc
comparison Core/HttpServer/MongooseServer.cpp @ 1644:939b921b2c81
plugin error dictionary
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 23 Sep 2015 22:05:27 +0200 |
parents | d73124f6b439 |
children | 1558b3226b18 |
comparison
equal
deleted
inserted
replaced
1643:87c77b9b3679 | 1644:939b921b2c81 |
---|---|
752 { | 752 { |
753 // Using this candidate handler results in an exception | 753 // Using this candidate handler results in an exception |
754 LOG(ERROR) << "Exception in the HTTP handler: " << e.What(); | 754 LOG(ERROR) << "Exception in the HTTP handler: " << e.What(); |
755 | 755 |
756 Json::Value message = Json::objectValue; | 756 Json::Value message = Json::objectValue; |
757 message["Method"] = EnumerationToString(method); | |
758 message["Uri"] = request->uri; | |
759 | |
760 // TODO | |
757 message["HttpError"] = EnumerationToString(e.GetHttpStatus()); | 761 message["HttpError"] = EnumerationToString(e.GetHttpStatus()); |
758 message["HttpStatus"] = e.GetHttpStatus(); | 762 message["HttpStatus"] = e.GetHttpStatus(); |
759 message["Message"] = e.What(); | 763 message["Message"] = e.What(); |
760 message["Method"] = EnumerationToString(method); | |
761 message["OrthancError"] = EnumerationToString(e.GetErrorCode()); | 764 message["OrthancError"] = EnumerationToString(e.GetErrorCode()); |
762 message["OrthancStatus"] = e.GetErrorCode(); | 765 message["OrthancStatus"] = e.GetErrorCode(); |
763 message["Uri"] = request->uri; | |
764 | 766 |
765 std::string info = message.toStyledString(); | 767 std::string info = message.toStyledString(); |
766 | 768 |
767 try | 769 try |
768 { | 770 { |