changeset 459:bb7ef0b076c8

new error code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Jul 2013 16:57:51 +0200
parents 84966299c8f8
children 339067c6bdb1 d665b8fc8560
files Core/Enumerations.h Core/OrthancException.cpp
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/Enumerations.h	Thu Jul 04 16:10:42 2013 +0200
+++ b/Core/Enumerations.h	Thu Jul 04 16:57:51 2013 +0200
@@ -56,6 +56,7 @@
     ErrorCode_BadSequenceOfCalls,
     ErrorCode_InexistentItem,
     ErrorCode_BadRequest,
+    ErrorCode_NetworkProtocol,
 
     // Specific error codes
     ErrorCode_UriSyntax,
--- a/Core/OrthancException.cpp	Thu Jul 04 16:10:42 2013 +0200
+++ b/Core/OrthancException.cpp	Thu Jul 04 16:57:51 2013 +0200
@@ -102,6 +102,9 @@
       case ErrorCode_BadRequest:
         return "Bad request";
 
+      case ErrorCode_NetworkProtocol:
+        return "Error in the network protocol";
+
       case ErrorCode_Custom:
       default:
         return "???";