Mercurial > hg > orthanc
comparison OrthancFramework/Sources/OrthancException.h @ 5100:9d51c000e91a
more verbose HTTPClient errors + avoid duplicate logging of same error
author | Alain Mazy <am@osimis.io> |
---|---|
date | Wed, 19 Oct 2022 12:40:14 +0200 |
parents | 43e613a7756b |
children | 0ea402b4d901 |
comparison
equal
deleted
inserted
replaced
5099:edefb278cb77 | 5100:9d51c000e91a |
---|---|
36 | 36 |
37 OrthancException& operator= (const OrthancException&); // Forbidden | 37 OrthancException& operator= (const OrthancException&); // Forbidden |
38 | 38 |
39 ErrorCode errorCode_; | 39 ErrorCode errorCode_; |
40 HttpStatus httpStatus_; | 40 HttpStatus httpStatus_; |
41 bool logged_; // has the exception already been logged ? (to avoid double logs) | |
41 | 42 |
42 // New in Orthanc 1.5.0 | 43 // New in Orthanc 1.5.0 |
43 std::unique_ptr<std::string> details_; | 44 std::unique_ptr<std::string> details_; |
44 | 45 |
45 public: | 46 public: |
66 const char* What() const; | 67 const char* What() const; |
67 | 68 |
68 bool HasDetails() const; | 69 bool HasDetails() const; |
69 | 70 |
70 const char* GetDetails() const; | 71 const char* GetDetails() const; |
72 | |
73 bool HasBeenLogged() const; | |
71 }; | 74 }; |
72 } | 75 } |