00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _ProtocolVersionException_
00023 #define _ProtocolVersionException_
00024
00025 #include <Exception.h>
00026 #include <ProtocolVersion.h>
00027 #include <string>
00028 #include <vector>
00029
00030 namespace qpid
00031 {
00032 namespace framing
00033 {
00034
00035 class ProtocolVersionException : virtual public qpid::Exception
00036 {
00037 protected:
00038 ProtocolVersion versionFound;
00039
00040 public:
00041 ProtocolVersionException() throw ();
00042 ProtocolVersionException(const std::string& str) throw ();
00043 ProtocolVersionException(const char* str) throw ();
00044 ProtocolVersionException(const ProtocolVersion& versionFound_, const std::string& str) throw ();
00045 ProtocolVersionException(const ProtocolVersion& versionFound_, const char* str) throw ();
00046 virtual ~ProtocolVersionException() throw ();
00047
00048 virtual const char* what() const throw();
00049 virtual std::string toString() const throw();
00050 };
00051
00052 }
00053 }
00054
00055 #endif //ifndef _ProtocolVersionException_