/home/aconway/svn/qpid/cpp/lib/common/framing/ProtocolVersionException.h

00001 /*
00002  *
00003  * Licensed to the Apache Software Foundation (ASF) under one
00004  * or more contributor license agreements.  See the NOTICE file
00005  * distributed with this work for additional information
00006  * regarding copyright ownership.  The ASF licenses this file
00007  * to you under the Apache License, Version 2.0 (the
00008  * "License"); you may not use this file except in compliance
00009  * with the License.  You may obtain a copy of the License at
00010  * 
00011  *   http://www.apache.org/licenses/LICENSE-2.0
00012  * 
00013  * Unless required by applicable law or agreed to in writing,
00014  * software distributed under the License is distributed on an
00015  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00016  * KIND, either express or implied.  See the License for the
00017  * specific language governing permissions and limitations
00018  * under the License.
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 }; // class ProtocolVersionException
00051 
00052 } // namespace framing
00053 } // namespace qpid
00054 
00055 #endif //ifndef _ProtocolVersionException_

Generated on Thu Jan 25 11:48:13 2007 for Qpid by  doxygen 1.5.1