Rename resource-encapsulation exception classes.
[platform/upstream/iotivity.git] / service / resource-encapsulation / include / RCSException.h
index 256ba59..acd45d3 100644 (file)
@@ -80,10 +80,10 @@ namespace OIC
          * Thrown when OC layer returns an error.
          *
          */
-        class PlatformException: public RCSException
+        class RCSPlatformException: public RCSException
         {
         public:
-            explicit PlatformException(OCStackResult reason);
+            explicit RCSPlatformException(OCStackResult reason);
 
             /**
              * Returns the reason.
@@ -105,43 +105,43 @@ namespace OIC
          * Thrown when a request is not acceptable.
          *
          */
-        class BadRequestException: public RCSException
+        class RCSBadRequestException: public RCSException
         {
         public:
-            explicit BadRequestException(const std::string& what);
-            explicit BadRequestException(std::string&& what);
+            explicit RCSBadRequestException(const std::string& what);
+            explicit RCSBadRequestException(std::string&& what);
         };
 
         /**
          * Thrown when a parameter is not valid.
          *
          */
-        class InvalidParameterException: public RCSException
+        class RCSInvalidParameterException: public RCSException
         {
         public:
-            explicit InvalidParameterException(const std::string& what);
-            explicit InvalidParameterException(std::string&& what);
+            explicit RCSInvalidParameterException(const std::string& what);
+            explicit RCSInvalidParameterException(std::string&& what);
         };
 
         /**
          * Thrown when getting value with wrong template parameter.
          */
-        class BadGetException: public RCSException
+        class RCSBadGetException: public RCSException
         {
         public:
-            explicit BadGetException(const std::string& what);
-            explicit BadGetException(std::string&& what);
+            explicit RCSBadGetException(const std::string& what);
+            explicit RCSBadGetException(std::string&& what);
         };
 
         /**
          * Thrown when a key is invalid.
          *
          */
-        class InvalidKeyException: public RCSException
+        class RCSInvalidKeyException: public RCSException
         {
         public:
-            explicit InvalidKeyException(const std::string& what);
-            explicit InvalidKeyException(std::string&& what);
+            explicit RCSInvalidKeyException(const std::string& what);
+            explicit RCSInvalidKeyException(std::string&& what);
         };
 
     }