changeset 4347:3dffe8f7af48

new error code: ErrorCode_DiscontinuedAbi
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sun, 06 Dec 2020 11:42:39 +0100
parents 1f08180cd86f
children 93c281752e7a
files OrthancFramework/Resources/CodeGeneration/ErrorCodes.json OrthancFramework/Sources/Enumerations.cpp OrthancFramework/Sources/Enumerations.h OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h OrthancServer/Sources/main.cpp
diffstat 5 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Resources/CodeGeneration/ErrorCodes.json	Sat Dec 05 19:15:03 2020 +0100
+++ b/OrthancFramework/Resources/CodeGeneration/ErrorCodes.json	Sun Dec 06 11:42:39 2020 +0100
@@ -222,6 +222,11 @@
     "Name": "SslInitialization", 
     "Description": "Cannot initialize SSL encryption, check out your certificates"
   }, 
+  {
+    "Code": 40, 
+    "Name": "DiscontinuedAbi", 
+    "Description": "Calling a function that has been removed from the Orthanc Framework"
+  }, 
 
 
 
--- a/OrthancFramework/Sources/Enumerations.cpp	Sat Dec 05 19:15:03 2020 +0100
+++ b/OrthancFramework/Sources/Enumerations.cpp	Sun Dec 06 11:42:39 2020 +0100
@@ -181,6 +181,9 @@
       case ErrorCode_SslInitialization:
         return "Cannot initialize SSL encryption, check out your certificates";
 
+      case ErrorCode_DiscontinuedAbi:
+        return "Calling a function that has been removed from the Orthanc Framework";
+
       case ErrorCode_SQLiteNotOpened:
         return "SQLite: The database is not opened";
 
--- a/OrthancFramework/Sources/Enumerations.h	Sat Dec 05 19:15:03 2020 +0100
+++ b/OrthancFramework/Sources/Enumerations.h	Sun Dec 06 11:42:39 2020 +0100
@@ -132,6 +132,7 @@
     ErrorCode_CanceledJob = 37    /*!< This job was canceled */,
     ErrorCode_BadGeometry = 38    /*!< Geometry error encountered in Stone */,
     ErrorCode_SslInitialization = 39    /*!< Cannot initialize SSL encryption, check out your certificates */,
+    ErrorCode_DiscontinuedAbi = 40    /*!< Calling a function that has been removed from the Orthanc Framework */,
     ErrorCode_SQLiteNotOpened = 1000    /*!< SQLite: The database is not opened */,
     ErrorCode_SQLiteAlreadyOpened = 1001    /*!< SQLite: Connection is already open */,
     ErrorCode_SQLiteCannotOpen = 1002    /*!< SQLite: Unable to open the database */,
--- a/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Sat Dec 05 19:15:03 2020 +0100
+++ b/OrthancServer/Plugins/Include/orthanc/OrthancCPlugin.h	Sun Dec 06 11:42:39 2020 +0100
@@ -237,6 +237,7 @@
     OrthancPluginErrorCode_CanceledJob = 37    /*!< This job was canceled */,
     OrthancPluginErrorCode_BadGeometry = 38    /*!< Geometry error encountered in Stone */,
     OrthancPluginErrorCode_SslInitialization = 39    /*!< Cannot initialize SSL encryption, check out your certificates */,
+    OrthancPluginErrorCode_DiscontinuedAbi = 40    /*!< Calling a function that has been removed from the Orthanc Framework */,
     OrthancPluginErrorCode_SQLiteNotOpened = 1000    /*!< SQLite: The database is not opened */,
     OrthancPluginErrorCode_SQLiteAlreadyOpened = 1001    /*!< SQLite: Connection is already open */,
     OrthancPluginErrorCode_SQLiteCannotOpen = 1002    /*!< SQLite: Unable to open the database */,
--- a/OrthancServer/Sources/main.cpp	Sat Dec 05 19:15:03 2020 +0100
+++ b/OrthancServer/Sources/main.cpp	Sun Dec 06 11:42:39 2020 +0100
@@ -759,6 +759,7 @@
     PrintErrorCode(ErrorCode_CanceledJob, "This job was canceled");
     PrintErrorCode(ErrorCode_BadGeometry, "Geometry error encountered in Stone");
     PrintErrorCode(ErrorCode_SslInitialization, "Cannot initialize SSL encryption, check out your certificates");
+    PrintErrorCode(ErrorCode_DiscontinuedAbi, "Calling a function that has been removed from the Orthanc Framework");
     PrintErrorCode(ErrorCode_SQLiteNotOpened, "SQLite: The database is not opened");
     PrintErrorCode(ErrorCode_SQLiteAlreadyOpened, "SQLite: Connection is already open");
     PrintErrorCode(ErrorCode_SQLiteCannotOpen, "SQLite: Unable to open the database");