comparison Plugins/Samples/ModalityWorklists/Plugin.cpp @ 2234:a78d15509a1c

cleaner separation of PluginException
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Dec 2016 14:35:35 +0100
parents 9a8fab016145
children 99d151fafab9
comparison
equal deleted inserted replaced
2232:3dd44baebc36 2234:a78d15509a1c
49 (context_, answers, query, dicom.GetData(), dicom.GetSize()); 49 (context_, answers, query, dicom.GetData(), dicom.GetSize());
50 50
51 if (code != OrthancPluginErrorCode_Success) 51 if (code != OrthancPluginErrorCode_Success)
52 { 52 {
53 OrthancPlugins::LogError(context_, "Error while adding an answer to a worklist request"); 53 OrthancPlugins::LogError(context_, "Error while adding an answer to a worklist request");
54 ORTHANC_PLUGINS_THROW_EXCEPTION(code); 54 ORTHANC_PLUGINS_THROW_PLUGIN_ERROR_CODE(code);
55 } 55 }
56 } 56 }
57 } 57 }
58 58
59 59