# HG changeset patch # User Sebastien Jodogne # Date 1557930624 -7200 # Node ID 56ea9c476dba37f1d63f0c93923179b5227b8e86 # Parent 73d60d80a74aa9399ee9c9920839332cba5aa8be new error code for Stone: BadGeometry diff -r 73d60d80a74a -r 56ea9c476dba Core/Enumerations.cpp --- 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"; diff -r 73d60d80a74a -r 56ea9c476dba Core/Enumerations.h --- 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 */, diff -r 73d60d80a74a -r 56ea9c476dba OrthancServer/main.cpp --- 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"); diff -r 73d60d80a74a -r 56ea9c476dba Plugins/Include/orthanc/OrthancCPlugin.h --- 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 */, diff -r 73d60d80a74a -r 56ea9c476dba Resources/ErrorCodes.json --- 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" + },