MCPcopy Create free account
hub / github.com/SoarGroup/Soar / InvalidArg

Method InvalidArg

Core/KernelSML/src/sml_KernelSML.cpp:492–501  ·  view source on GitHub ↗

* @brief Return an invalid argument error to the caller. *************************************************************/

Source from the content-addressed store, hash-verified

490* @brief Return an invalid argument error to the caller.
491*************************************************************/
492bool KernelSML::InvalidArg(Connection* pConnection, soarxml::ElementXML* pResponse, char const* pCommandName, char const* pErrorDescription)
493{
494 std::stringstream msg;
495 msg << "Invalid arguments for command : " << pCommandName << pErrorDescription ;
496
497 AddErrorMsg(pConnection, pResponse, msg.str().c_str()) ;
498
499 // Return true because we've already added the error message.
500 return true ;
501}
502
503/*************************************************************
504* @brief Look up an agent from its name.

Callers

nothing calls this directly

Calls 1

AddErrorMsgFunction · 0.85

Tested by

no test coverage detected