Mercurial > hg > orthanc
diff Core/OrthancException.h @ 1582:bd1889029cbb
encoding of exceptions
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 25 Aug 2015 17:39:38 +0200 |
parents | 7aac0cddd42e |
children | 9ea3d082b064 |
line wrap: on
line diff
--- a/Core/OrthancException.h Tue Aug 25 16:18:37 2015 +0200 +++ b/Core/OrthancException.h Tue Aug 25 17:39:38 2015 +0200 @@ -44,7 +44,6 @@ HttpStatus httpStatus_; std::string custom_; - public: OrthancException(const std::string& custom) : errorCode_(ErrorCode_Custom), httpStatus_(HttpStatus_500_InternalServerError), @@ -52,6 +51,7 @@ { } + public: OrthancException(ErrorCode errorCode) : errorCode_(errorCode), httpStatus_(ConvertErrorCodeToHttpStatus(errorCode))