Improvement: show avp name if known (validation)
[anna.git] / include / anna / diameter / codec / Message.hpp
index 3f17e09..87e1012 100644 (file)
@@ -147,7 +147,7 @@ class Message {
   int addChild(Avp *avp) throw() { return Avp::addChild(a_avps, a_insertionPositionForChilds, avp); }
   const anna::diameter::stack::Command *getStackCommand(CommandId id) const throw(anna::RuntimeException);
 
-  void setFailedAvp(const parent_t &parent, AvpId wrong) throw(anna::RuntimeException);
+  void setFailedAvp(const parent_t &parent, AvpId wrong, const char *wrongName = NULL) throw(anna::RuntimeException);
          // During message decoding and validation, the first wrong avp is stored and all the tracking is managed to find out its
       //  nested path for the case of grouped avps with wrong avps inside. Remember the RFC 6733, section 7.5:
       //