00001 #ifndef HEADER_UNKNOWNMSGEXCEPTION_H 00002 #define HEADER_UNKNOWNMSGEXCEPTION_H 00003 00004 #include "BaseException.h" 00005 00006 #include "BaseMsg.h" 00007 00008 /** 00009 * Exception about unknown msg. 00010 */ 00011 class UnknownMsgException : public BaseException { 00012 public: 00013 UnknownMsgException(const BaseMsg *msg) 00014 : BaseException(ExInfo("unknown message") 00015 .addInfo("msg", msg->toString())) 00016 {} 00017 }; 00018 00019 #endif