Mercurial > hg > orthanc
diff Core/OrthancException.h @ 1577:7aac0cddd42e
generation of the error codes from a Python script
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 15:10:45 +0200 |
parents | de54c19fc44d |
children | bd1889029cbb |
line wrap: on
line diff
--- a/Core/OrthancException.h Tue Aug 25 14:48:06 2015 +0200 +++ b/Core/OrthancException.h Tue Aug 25 15:10:45 2015 +0200 @@ -44,16 +44,7 @@ HttpStatus httpStatus_; std::string custom_; - static HttpStatus ConvertToHttpStatus(ErrorCode code); - public: - OrthancException(const char* custom) : - errorCode_(ErrorCode_Custom), - httpStatus_(HttpStatus_500_InternalServerError), - custom_(custom) - { - } - OrthancException(const std::string& custom) : errorCode_(ErrorCode_Custom), httpStatus_(HttpStatus_500_InternalServerError),