Mercurial > hg > orthanc
comparison Core/OrthancException.h @ 384:18fe778eeb95 lua-scripting
wrapper around lua
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 29 Apr 2013 16:59:31 +0200 |
parents | fe180eae201d |
children | 2d269089078f |
comparison
equal
deleted
inserted
replaced
382:b45bc565d82a | 384:18fe778eeb95 |
---|---|
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; |