Mercurial > hg > orthanc
comparison Core/JobsEngine/JobStatus.h @ 3240:e44e0127e553
Fix issue #134 (/patient/modify gives 500, should really be 400)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 15 Feb 2019 17:26:45 +0100 |
parents | 4e43e67f8ecf |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3239:407e1a188105 | 3240:e44e0127e553 |
---|---|
44 float progress_; | 44 float progress_; |
45 std::string jobType_; | 45 std::string jobType_; |
46 Json::Value publicContent_; | 46 Json::Value publicContent_; |
47 Json::Value serialized_; | 47 Json::Value serialized_; |
48 bool hasSerialized_; | 48 bool hasSerialized_; |
49 std::string details_; | |
49 | 50 |
50 public: | 51 public: |
51 JobStatus(); | 52 JobStatus(); |
52 | 53 |
53 JobStatus(ErrorCode code, | 54 JobStatus(ErrorCode code, |
55 const std::string& details, | |
54 IJob& job); | 56 IJob& job); |
55 | 57 |
56 ErrorCode GetErrorCode() const | 58 ErrorCode GetErrorCode() const |
57 { | 59 { |
58 return errorCode_; | 60 return errorCode_; |
82 | 84 |
83 bool HasSerialized() const | 85 bool HasSerialized() const |
84 { | 86 { |
85 return hasSerialized_; | 87 return hasSerialized_; |
86 } | 88 } |
89 | |
90 const std::string& GetDetails() const | |
91 { | |
92 return details_; | |
93 } | |
87 }; | 94 }; |
88 } | 95 } |