static const char NOT_FOUND[] = "Resource Not Found";
static const char RESOURCE_ERROR[] = "Resource Error";
static const char SLOW_RESOURCE[] = "Slow Resource";
+ static const char REPEATED_REQUEST[] = "Repeated Request";
static const char NO_OBSERVERS[] = "No Observers";
static const char OBSV_NO_FOUND[] = "Stack observer not found";
static const char OBSV_NOT_ADDED[] = "Stack observer not added";
static const char PERSISTENT_BUFFER_REQUIRED[] = "Persistent response buffer required";
static const char STACK_CONTINUE[] = "Stack continue";
static const char INVALID_REQUEST_HANDLE[] = "Invalid request handle";
+ static const char INVALID_DEVICE_INFO[] = "Invalid device info";
static const char UNKNOWN_ERROR[] = "Unknown Error";
static const char INVALID_REPRESENTATION[] = "Invalid Payload JSON";
static const char INVALID_JSON_TYPE[] = "Unrecognized JSON Type ";
return OC::Exception::RESOURCE_CREATED;
case OC_STACK_RESOURCE_DELETED:
return OC::Exception::RESOURCE_DELETED;
+ case OC_STACK_CONTINUE:
+ return OC::Exception::STACK_CONTINUE;
case OC_STACK_INVALID_URI:
return OC::Exception::INVALID_URI;
+ case OC_STACK_INVALID_QUERY:
+ return OC::Exception::INVALID_QUERY;
case OC_STACK_INVALID_IP:
return OC::Exception::INVALID_IP;
case OC_STACK_INVALID_PORT:
return OC::Exception::INVALID_CB;
case OC_STACK_INVALID_METHOD:
return OC::Exception::INVALID_METHOD;
- case OC_STACK_INVALID_QUERY:
- return OC::Exception::INVALID_QUERY;
case OC_STACK_INVALID_PARAM:
return OC::Exception::INVALID_PARAM;
case OC_STACK_INVALID_OBSERVE_PARAM:
return OC::Exception::RESOURCE_ERROR;
case OC_STACK_SLOW_RESOURCE:
return OC::Exception::SLOW_RESOURCE;
+ case OC_STACK_REPEATED_REQUEST:
+ return OC::Exception::REPEATED_REQUEST;
case OC_STACK_NO_OBSERVERS:
return OC::Exception::NO_OBSERVERS;
case OC_STACK_OBSERVER_NOT_FOUND:
return OC::Exception::OBSV_NO_FOUND;
-#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_INVALID_OPTION:
return OC::Exception::MALFORMED_STACK_RESPONSE;
case OC_STACK_PERSISTENT_BUFFER_REQUIRED:
return OC::Exception::PERSISTENT_BUFFER_REQUIRED;
- case OC_STACK_CONTINUE:
- return OC::Exception::STACK_CONTINUE;
case OC_STACK_INVALID_REQUEST_HANDLE:
return OC::Exception::INVALID_REQUEST_HANDLE;
+ case OC_STACK_INVALID_DEVICE_INFO:
+ return OC::Exception::INVALID_DEVICE_INFO;
+#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_ERROR:
return OC::Exception::GENERAL_FAULT;
}