Mercurial > hg > orthanc-wsi
diff Resources/Orthanc/Plugins/Samples/Common/DicomDatasetReader.cpp @ 86:319b8c45c231
sync
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 16 Dec 2016 14:55:19 +0100 |
parents | cd84f27bc8e2 |
children | 3d83d34cd4db |
line wrap: on
line diff
--- a/Resources/Orthanc/Plugins/Samples/Common/DicomDatasetReader.cpp Thu Dec 15 15:37:40 2016 +0100 +++ b/Resources/Orthanc/Plugins/Samples/Common/DicomDatasetReader.cpp Fri Dec 16 14:55:19 2016 +0100 @@ -32,7 +32,7 @@ #include "DicomDatasetReader.h" -#include "OrthancPluginCppWrapper.h" +#include "OrthancPluginException.h" #include <boost/lexical_cast.hpp> @@ -73,7 +73,7 @@ { if (dataset == NULL) { - ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_ParameterOutOfRange); + ORTHANC_PLUGINS_THROW_EXCEPTION(ParameterOutOfRange); } } @@ -87,7 +87,7 @@ } else { - ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_InexistentTag); + ORTHANC_PLUGINS_THROW_EXCEPTION(InexistentTag); } } @@ -101,7 +101,7 @@ } catch (boost::bad_lexical_cast&) { - ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_BadFileFormat); + ORTHANC_PLUGINS_THROW_EXCEPTION(BadFileFormat); } } @@ -116,7 +116,7 @@ } else { - ORTHANC_PLUGINS_THROW_EXCEPTION(OrthancPluginErrorCode_ParameterOutOfRange); + ORTHANC_PLUGINS_THROW_EXCEPTION(ParameterOutOfRange); } } }