diff Plugins/Include/orthanc/OrthancCPlugin.h @ 3404:e280ced38a4c

ErrorCode_UnsupportedMediaType
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 07 Jun 2019 18:43:42 +0200
parents 962e5f00744b
children f09bfdea3fc3
line wrap: on
line diff
--- a/Plugins/Include/orthanc/OrthancCPlugin.h	Fri Jun 07 17:24:26 2019 +0200
+++ b/Plugins/Include/orthanc/OrthancCPlugin.h	Fri Jun 07 18:43:42 2019 +0200
@@ -298,6 +298,7 @@
     OrthancPluginErrorCode_CannotOrderSlices = 2040    /*!< Unable to order the slices of the series */,
     OrthancPluginErrorCode_NoWorklistHandler = 2041    /*!< No request handler factory for DICOM C-Find Modality SCP */,
     OrthancPluginErrorCode_AlreadyExistingTag = 2042    /*!< Cannot override the value of a tag that already exists */,
+    OrthancPluginErrorCode_UnsupportedMediaType = 3000    /*!< Unsupported media type */,
 
     _OrthancPluginErrorCode_INTERNAL = 0x7fffffff
   } OrthancPluginErrorCode;
@@ -6915,6 +6916,7 @@
 
   typedef OrthancPluginMultipartRestHandler* (*OrthancPluginMultipartRestCreateHandler) (
     OrthancPluginMultipartRestFactory* factory,
+    OrthancPluginErrorCode*            errorCode,   /* out: to report an exception on handler creation */
     OrthancPluginHttpMethod            method,
     const char*                        url,
     const char*                        contentType,