Mercurial > hg > orthanc
diff 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 |
line wrap: on
line diff
--- a/Core/OrthancException.h Mon Apr 29 13:31:10 2013 +0200 +++ b/Core/OrthancException.h Mon Apr 29 16:59:31 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;