changeset 3376:56ea9c476dba

new error code for Stone: BadGeometry
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 15 May 2019 16:30:24 +0200
parents 73d60d80a74a
children 05881bf99c83
files Core/Enumerations.cpp Core/Enumerations.h OrthancServer/main.cpp Plugins/Include/orthanc/OrthancCPlugin.h Resources/ErrorCodes.json
diffstat 5 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Enumerations.cpp	Tue May 14 16:38:20 2019 +0200
+++ b/Core/Enumerations.cpp	Wed May 15 16:30:24 2019 +0200
@@ -185,6 +185,9 @@
       case ErrorCode_CanceledJob:
         return "This job was canceled";
 
+      case ErrorCode_BadGeometry:
+        return "Geometry error encountered in Stone";
+
       case ErrorCode_SQLiteNotOpened:
         return "SQLite: The database is not opened";
 
--- a/Core/Enumerations.h	Tue May 14 16:38:20 2019 +0200
+++ b/Core/Enumerations.h	Wed May 15 16:30:24 2019 +0200
@@ -178,6 +178,7 @@
     ErrorCode_NullPointer = 35    /*!< Cannot handle a NULL pointer */,
     ErrorCode_DatabaseUnavailable = 36    /*!< The database is currently not available (probably a transient situation) */,
     ErrorCode_CanceledJob = 37    /*!< This job was canceled */,
+    ErrorCode_BadGeometry = 38    /*!< Geometry error encountered in Stone */,
     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/main.cpp	Tue May 14 16:38:20 2019 +0200
+++ b/OrthancServer/main.cpp	Wed May 15 16:30:24 2019 +0200
@@ -611,6 +611,7 @@
     PrintErrorCode(ErrorCode_NullPointer, "Cannot handle a NULL pointer");
     PrintErrorCode(ErrorCode_DatabaseUnavailable, "The database is currently not available (probably a transient situation)");
     PrintErrorCode(ErrorCode_CanceledJob, "This job was canceled");
+    PrintErrorCode(ErrorCode_BadGeometry, "Geometry error encountered in Stone");
     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");
--- a/Plugins/Include/orthanc/OrthancCPlugin.h	Tue May 14 16:38:20 2019 +0200
+++ b/Plugins/Include/orthanc/OrthancCPlugin.h	Wed May 15 16:30:24 2019 +0200
@@ -238,6 +238,7 @@
     OrthancPluginErrorCode_NullPointer = 35    /*!< Cannot handle a NULL pointer */,
     OrthancPluginErrorCode_DatabaseUnavailable = 36    /*!< The database is currently not available (probably a transient situation) */,
     OrthancPluginErrorCode_CanceledJob = 37    /*!< This job was canceled */,
+    OrthancPluginErrorCode_BadGeometry = 38    /*!< Geometry error encountered in Stone */,
     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/Resources/ErrorCodes.json	Tue May 14 16:38:20 2019 +0200
+++ b/Resources/ErrorCodes.json	Wed May 15 16:30:24 2019 +0200
@@ -212,6 +212,11 @@
     "Name": "CanceledJob", 
     "Description": "This job was canceled"
   }, 
+  {
+    "Code": 38, 
+    "Name": "BadGeometry", 
+    "Description": "Geometry error encountered in Stone"
+  },