Imported Upstream version 1.1.0
[platform/upstream/iotivity.git] / resource / include / OCException.h
index b297a0c..1d70e7d 100644 (file)
 //
 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 
-#ifndef __INTEL_OCEXCEPTION_H_2014_07_10
- #define __INTEL_OCEXCEPTION_H_2014_07_10
+#ifndef OC_EXCEPTION_H_
+#define OC_EXCEPTION_H_
 
 #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: