37 serialize(EMANERemoteControlPortAPI::Response::Error::ErrorType type,
38 const std::string & sDescription,
39 std::uint32_t u32Sequence,
40 std::uint32_t u32Reference)
44 response.set_type(EMANERemoteControlPortAPI::Response::TYPE_RESPONSE_ERROR);
46 auto pError = response.mutable_error();
48 pError->set_type(type);
50 pError->set_description(sDescription);
52 response.set_reference(u32Reference);
54 response.set_sequence(u32Sequence);
56 std::string sSerialization;
58 if(!response.SerializeToString(&sSerialization))
63 return sSerialization;
SerializationException is thrown when an exception occurs during serialization or deserialization of ...
static std::string serialize(EMANERemoteControlPortAPI::Response::Error::ErrorType type, const std::string &sDescription, std::uint32_t u32Sequence, std::uint32_t u32Reference)