Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / resource / include / OCException.h
index b297a0c..849bacd 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <stdexcept>
 #include <string>
-#include <ocstack.h>
+#include <octypes.h>
 
 namespace OC {
 
@@ -42,9 +42,9 @@ class OCException : public std::runtime_error
             return reason(m_reason);
         }
 
-        std::string reason(const OC::OCException& e) const
+        OCStackResult code() const
         {
-            return e.reason();
+            return m_reason;
         }
 
     private: