Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/OrthancException.h Tue Apr 30 15:26:34 2013 +0200 +++ b/Core/OrthancException.h Thu May 02 16:49:28 2013 +0200 @@ -39,13 +39,19 @@ { class OrthancException { - private: + protected: ErrorCode error_; std::string custom_; public: static const char* GetDescription(ErrorCode error); + OrthancException(const char* custom) + { + error_ = ErrorCode_Custom; + custom_ = custom; + } + OrthancException(const std::string& custom) { error_ = ErrorCode_Custom;