//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-#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 {
return reason(m_reason);
}
- std::string reason(const OC::OCException& e) const
+ OCStackResult code() const
{
- return e.reason();
+ return m_reason;
}
private: