Added case statements for two new conditions in OCException that
were forgotten when we implemented this in the past.
Change-Id: I99ab3c2c8ad4f46d9ee35c639970ea93e69f9813
Signed-off-by: Erich Keane <erich.keane@intel.com>
static const std::string OBSV_NOT_REMOVED = "Stack observer not removed";
static const std::string STACK_RESOURCE_DELETED = "The specified resource has been deleted";
static const std::string PRESENCE_STOPPED = "Stack presence stopped";
+ static const std::string PRESENCE_TIMEOUT = "Stack presence timed out";
static const std::string PRESENCE_NOT_HANDLED = "Stack presence should not be handled";
static const std::string INVALID_OPTION = "Invalid option";
static const std::string GENERAL_FAULT = "General Fault";
#ifdef WITH_PRESENCE
case OC_STACK_PRESENCE_STOPPED:
return OC::Exception::PRESENCE_STOPPED;
+ case OC_STACK_PRESENCE_TIMEOUT:
+ return OC::Exception::PRESENCE_TIMEOUT;
+ case OC_STACK_PRESENCE_DO_NOT_HANDLE:
+ return OC::Exception::PRESENCE_NOT_HANDLED;
#endif
case OC_STACK_VIRTUAL_DO_NOT_HANDLE:
return OC::Exception::VIRTUAL_DO_NOT_HANDLE;
case OC_STACK_OBSERVER_NOT_FOUND:
#ifdef WITH_PRESENCE
case OC_STACK_PRESENCE_STOPPED:
+ case OC_STACK_PRESENCE_TIMEOUT:
+ case OC_STACK_PRESENCE_DO_NOT_HANDLE:
#endif
break;