comparison Core/HttpServer/MongooseServer.cpp @ 1649:8040d56cb0b3

New function "OrthancPluginRegisterErrorCode()" to declare custom error codes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 25 Sep 2015 16:24:13 +0200
parents 1558b3226b18
children 4fc502d469f4
comparison
equal deleted inserted replaced
1648:a0a4fa28624c 1649:8040d56cb0b3
747 } 747 }
748 } 748 }
749 catch (OrthancException& e) 749 catch (OrthancException& e)
750 { 750 {
751 // Using this candidate handler results in an exception 751 // Using this candidate handler results in an exception
752 LOG(ERROR) << "Exception in the HTTP handler: " << e.What();
753
754 try 752 try
755 { 753 {
756 if (that->GetExceptionFormatter() == NULL) 754 if (that->GetExceptionFormatter() == NULL)
757 { 755 {
756 LOG(ERROR) << "Exception in the HTTP handler: " << e.What();
758 output.SendStatus(e.GetHttpStatus()); 757 output.SendStatus(e.GetHttpStatus());
759 } 758 }
760 else 759 else
761 { 760 {
762 that->GetExceptionFormatter()->Format(output, e, method, request->uri); 761 that->GetExceptionFormatter()->Format(output, e, method, request->uri);