comparison OrthancCppClient/OrthancConnection.cpp @ 504:50d9660f960c laaw

laaw exception
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 18 Jul 2013 10:12:20 +0200
parents 7f7a2d174acb
children 6e4bd06c17c5
comparison
equal deleted inserted replaced
502:ee33c7d0cda0 504:50d9660f960c
30 **/ 30 **/
31 31
32 32
33 #include "OrthancConnection.h" 33 #include "OrthancConnection.h"
34 34
35 #include "../Core/OrthancException.h"
36
37 namespace OrthancClient 35 namespace OrthancClient
38 { 36 {
39 void OrthancConnection::ReadPatients() 37 void OrthancConnection::ReadPatients()
40 { 38 {
41 client_.SetUrl(orthancUrl_ + "/patients"); 39 client_.SetUrl(orthancUrl_ + "/patients");
42 Json::Value v; 40 Json::Value v;
43 if (!client_.Apply(content_)) 41 if (!client_.Apply(content_))
44 { 42 {
45 throw Orthanc::OrthancException(Orthanc::ErrorCode_NetworkProtocol); 43 throw OrthancClientException(Orthanc::ErrorCode_NetworkProtocol);
46 } 44 }
47 } 45 }
48 46
49 Orthanc::IDynamicObject* OrthancConnection::GetFillerItem(size_t index) 47 Orthanc::IDynamicObject* OrthancConnection::GetFillerItem(size_t index)
50 { 48 {