changeset 1248:db753e57934f

ErrorCode_Database
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 09 Dec 2014 12:17:59 +0100
parents 32fcc5dc7562
children 40725595aaf0
files Core/Enumerations.h Core/OrthancException.cpp
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Enumerations.h	Mon Dec 08 13:54:27 2014 +0100
+++ b/Core/Enumerations.h	Tue Dec 09 12:17:59 2014 +0100
@@ -58,6 +58,7 @@
     ErrorCode_BadRequest,
     ErrorCode_NetworkProtocol,
     ErrorCode_SystemCommand,
+    ErrorCode_Database,
 
     // Specific error codes
     ErrorCode_UriSyntax,
--- a/Core/OrthancException.cpp	Mon Dec 08 13:54:27 2014 +0100
+++ b/Core/OrthancException.cpp	Tue Dec 09 12:17:59 2014 +0100
@@ -130,6 +130,9 @@
       case ErrorCode_Plugin:
         return "Error encountered inside a plugin";
 
+      case ErrorCode_Database:
+        return "Error with the database engine";
+
       case ErrorCode_Custom:
       default:
         return "???";