1 #ifndef HEADER_UNKNOWNMSGEXCEPTION_H
2 #define HEADER_UNKNOWNMSGEXCEPTION_H
3 
4 #include "BaseException.h"
5 
6 #include "BaseMsg.h"
7 
8 /**
9  * Exception about unknown msg.
10  */
11 class UnknownMsgException : public BaseException  {
12     public:
UnknownMsgException(const BaseMsg * msg)13         UnknownMsgException(const BaseMsg *msg)
14             : BaseException(ExInfo("unknown message")
15                     .addInfo("msg", msg->toString()))
16             {}
17 };
18 
19 #endif
20