X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=inline;f=src%2Ferror.cpp;h=6bbdd39c75f8159239ea0ae9fd135f3ba3d0a371;hb=refs%2Fheads%2Fh-release;hp=347e6513e9f836d3d8fbb12dda312f1d1ada6157;hpb=ef2bf51d04aaf01fa0cabdcaf905b23423067662;p=ric-plt%2Fsdl.git diff --git a/src/error.cpp b/src/error.cpp index 347e651..6bbdd39 100644 --- a/src/error.cpp +++ b/src/error.cpp @@ -14,6 +14,11 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #include #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;