+ try
+ {
+ oc.setJSONRepresentation(clientResponse->resJSONPayload);
+ }
+ catch (cereal::RapidJSONException& ex)
+ {
+ oclog() <<"RapidJSON Exception in parseGetSetCallback: "<<ex.what() <<std::endl<<
+ "Data was:"<< clientResponse->resJSONPayload<< ":" << std::flush;
+ throw OCException(OC::Exception::INVALID_REPRESENTATION, OC_STACK_INVALID_JSON);
+ }
+ catch (cereal::Exception& ex)
+ {
+ oclog() <<"Cereal Exception in parseGetSetCallback: "<<ex.what() <<std::endl<<
+ "Data was:"<< clientResponse->resJSONPayload<< ":" << std::flush;
+ throw OCException(OC::Exception::INVALID_REPRESENTATION, OC_STACK_INVALID_JSON);
+ }