RIC:1060: Change in PTL
[ric-plt/sdl.git] / src / error.cpp
index 347e651..6bbdd39 100644 (file)
    limitations under the License.
 */
 
+/*
+ * This source code is part of the near-RT RIC (RAN Intelligent Controller)
+ * platform project (RICP).
+*/
+
 #include <sstream>
 #include "private/createlogger.hpp"
 #include "private/error.hpp"
@@ -109,6 +114,8 @@ namespace
                 return "redis error";
             case AsyncRedisCommandDispatcherErrorCode::IO_ERROR:
                 return "redis I/O error";
+            case AsyncRedisCommandDispatcherErrorCode::WRITING_TO_SLAVE:
+                return "writing to slave";
             case AsyncRedisCommandDispatcherErrorCode::END_MARKER:
                 logErrorOnce("AsyncRedisCommandDispatcherErrorCode::END_MARKER is not meant to be queried (it is only for enum loop control)");
                 return "unsupported error code for message()";
@@ -137,6 +144,8 @@ namespace
                 return InternalError::BACKEND_ERROR;
             case AsyncRedisCommandDispatcherErrorCode::IO_ERROR:
                 return InternalError::BACKEND_ERROR;
+            case AsyncRedisCommandDispatcherErrorCode::WRITING_TO_SLAVE:
+                return InternalError::BACKEND_ERROR;
             case AsyncRedisCommandDispatcherErrorCode::END_MARKER:
                 logErrorOnce("AsyncRedisCommandDispatcherErrorCode::END_MARKER is not meant to be mapped to InternalError (it is only for enum loop control)");
                 return InternalError::SDL_ERROR_CODE_LOGIC_ERROR;