Add implementation of SDL in python
[ric-plt/sdlpy.git] / ricsdl-package / ricsdl / exceptions.py
similarity index 72%
rename from sdl/exceptions.py
rename to ricsdl-package/ricsdl/exceptions.py
index 2f3c16d..41f05af 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-"Exceptions raised by the shareddatalayer."
+#
+# This source code is part of the near-RT RIC (RAN Intelligent Controller)
+# platform project (RICP).
+#
+
+
+"Exceptions raised by the Shared Data Layer (SDL)."
+
 
 class SdlTypeError(TypeError):
     """
@@ -23,30 +30,34 @@ class SdlTypeError(TypeError):
     """
     pass
 
+
 class SdlException(Exception):
-    """Base exception class for shareddatalayer exceptions."""
+    """Base exception class for Shared Data Layer (SDL) exceptions."""
     pass
 
+
 class NotConnected(SdlException):
     """
-    Exception for not being connected to the database backend.
-    Shareddatalayer is not connected to the backend data storage and therefore could not deliver the
-    request to the backend data storage. Data in the backend data storage has not been altered.
+    Exception for SDL not being connected to the database backend.
+    SDL is not connected to the backend data storage and therefore could not deliver the request
+    to the backend data storage. Data in the backend data storage has not been altered.
     Client is advised to try the operation again later.
     """
     pass
 
+
 class BackendError(SdlException):
     """
-    Exception for request processing failure.
+    Exception for request processing failure in SDL database backend.
     In case of a write type request, data in the backend data storage may or may not have been
     altered. Client is advised to try the operation again later.
     """
     pass
 
+
 class RejectedByBackend(SdlException):
     """
-    Exception for shareddatalayer rejecting the request.
+    Exception for SDL database backend rejecting the request.
     Backend data storage rejected the request. In case of a write type request, data in the backend
     data storage may or may not have been altered. It is likely that the same request will fail
     repeatedly. It is advised to investigate the exact reason for the failure from the logs.