Mercurial > hg > orthanc-webviewer
comparison Plugin/Plugin.cpp @ 114:628697fdfcbd
additional catch
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 07 Dec 2015 16:19:22 +0100 |
parents | 21123729ac71 |
children | c8ca47a67bf3 |
comparison
equal
deleted
inserted
replaced
113:1dccd526d799 | 114:628697fdfcbd |
---|---|
343 | 343 |
344 *target = image->Release(); | 344 *target = image->Release(); |
345 | 345 |
346 return OrthancPluginErrorCode_Success; | 346 return OrthancPluginErrorCode_Success; |
347 } | 347 } |
348 catch (Orthanc::OrthancException& e) | |
349 { | |
350 *target = NULL; | |
351 | |
352 std::string s = "Cannot decode image using GDCM: " + std::string(e.What()); | |
353 OrthancPluginLogError(context_, s.c_str()); | |
354 return OrthancPluginErrorCode_Plugin; | |
355 } | |
348 catch (std::runtime_error& e) | 356 catch (std::runtime_error& e) |
349 { | 357 { |
350 *target = NULL; | 358 *target = NULL; |
351 | 359 |
352 std::string s = "Cannot decode image using GDCM: " + std::string(e.what()); | 360 std::string s = "Cannot decode image using GDCM: " + std::string(e.what()); |