comparison Core/OrthancException.h @ 407:2d269089078f

reintegration of lua scripting into mainline
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 02 May 2013 16:49:28 +0200
parents bdd72233b105 18fe778eeb95
children 08eca5d86aad
comparison
equal deleted inserted replaced
406:fb1d988a978b 407:2d269089078f
37 37
38 namespace Orthanc 38 namespace Orthanc
39 { 39 {
40 class OrthancException 40 class OrthancException
41 { 41 {
42 private: 42 protected:
43 ErrorCode error_; 43 ErrorCode error_;
44 std::string custom_; 44 std::string custom_;
45 45
46 public: 46 public:
47 static const char* GetDescription(ErrorCode error); 47 static const char* GetDescription(ErrorCode error);
48
49 OrthancException(const char* custom)
50 {
51 error_ = ErrorCode_Custom;
52 custom_ = custom;
53 }
48 54
49 OrthancException(const std::string& custom) 55 OrthancException(const std::string& custom)
50 { 56 {
51 error_ = ErrorCode_Custom; 57 error_ = ErrorCode_Custom;
52 custom_ = custom; 58 custom_ = custom;