/usr/share/cruisecontrol-bin-2.6.1/projects/qpid-trunk/cpp/src/gen/qpid/framing/reply_exceptions.h

00001 #ifndef QPID_FRAMING_REPLY_EXCEPTIONS_H
00002 #define QPID_FRAMING_REPLY_EXCEPTIONS_H
00003 /*
00004  *
00005  * Licensed to the Apache Software Foundation (ASF) under one
00006  * or more contributor license agreements.  See the NOTICE file
00007  * distributed with this work for additional information
00008  * regarding copyright ownership.  The ASF licenses this file
00009  * to you under the Apache License, Version 2.0 (the
00010  * "License"); you may not use this file except in compliance
00011  * with the License.  You may obtain a copy of the License at
00012  *
00013  *   http://www.apache.org/licenses/LICENSE-2.0
00014  *
00015  * Unless required by applicable law or agreed to in writing,
00016  * software distributed under the License is distributed on an
00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00018  * KIND, either express or implied.  See the License for the
00019  * specific language governing permissions and limitations
00020  * under the License.
00021  *
00022  */
00023 
00028 
00029 
00030 #include "qpid/Exception.h"
00031 
00032 namespace qpid {
00033 namespace framing {
00034 
00035 
00036 struct NotDeliveredException:
00037     ChannelException
00038 {
00039     NotDeliveredException(const std::string& msg=std::string()) : ChannelException(310, "not-delivered: "+msg) {}
00040 };
00041 
00042 struct ContentTooLargeException:
00043     ChannelException
00044 {
00045     ContentTooLargeException(const std::string& msg=std::string()) : ChannelException(311, "content-too-large: "+msg) {}
00046 };
00047 
00048 struct NoRouteException:
00049     ChannelException
00050 {
00051     NoRouteException(const std::string& msg=std::string()) : ChannelException(312, "no-route: "+msg) {}
00052 };
00053 
00054 struct NoConsumersException:
00055     ChannelException
00056 {
00057     NoConsumersException(const std::string& msg=std::string()) : ChannelException(313, "no-consumers: "+msg) {}
00058 };
00059 
00060 struct ConnectionForcedException:
00061     ConnectionException
00062 {
00063     ConnectionForcedException(const std::string& msg=std::string()) : ConnectionException(320, "connection-forced: "+msg) {}
00064 };
00065 
00066 struct InvalidPathException:
00067     ConnectionException
00068 {
00069     InvalidPathException(const std::string& msg=std::string()) : ConnectionException(402, "invalid-path: "+msg) {}
00070 };
00071 
00072 struct AccessRefusedException:
00073     ChannelException
00074 {
00075     AccessRefusedException(const std::string& msg=std::string()) : ChannelException(403, "access-refused: "+msg) {}
00076 };
00077 
00078 struct NotFoundException:
00079     ChannelException
00080 {
00081     NotFoundException(const std::string& msg=std::string()) : ChannelException(404, "not-found: "+msg) {}
00082 };
00083 
00084 struct ResourceLockedException:
00085     ChannelException
00086 {
00087     ResourceLockedException(const std::string& msg=std::string()) : ChannelException(405, "resource-locked: "+msg) {}
00088 };
00089 
00090 struct PreconditionFailedException:
00091     ChannelException
00092 {
00093     PreconditionFailedException(const std::string& msg=std::string()) : ChannelException(406, "precondition-failed: "+msg) {}
00094 };
00095 
00096 struct SessionBusyException:
00097     ChannelException
00098 {
00099     SessionBusyException(const std::string& msg=std::string()) : ChannelException(407, "session-busy: "+msg) {}
00100 };
00101 
00102 struct FrameErrorException:
00103     ConnectionException
00104 {
00105     FrameErrorException(const std::string& msg=std::string()) : ConnectionException(501, "frame-error: "+msg) {}
00106 };
00107 
00108 struct SyntaxErrorException:
00109     ConnectionException
00110 {
00111     SyntaxErrorException(const std::string& msg=std::string()) : ConnectionException(502, "syntax-error: "+msg) {}
00112 };
00113 
00114 struct CommandInvalidException:
00115     ConnectionException
00116 {
00117     CommandInvalidException(const std::string& msg=std::string()) : ConnectionException(503, "command-invalid: "+msg) {}
00118 };
00119 
00120 struct ChannelErrorException:
00121     ConnectionException
00122 {
00123     ChannelErrorException(const std::string& msg=std::string()) : ConnectionException(504, "channel-error: "+msg) {}
00124 };
00125 
00126 struct ResourceErrorException:
00127     ConnectionException
00128 {
00129     ResourceErrorException(const std::string& msg=std::string()) : ConnectionException(506, "resource-error: "+msg) {}
00130 };
00131 
00132 struct NotAllowedException:
00133     ConnectionException
00134 {
00135     NotAllowedException(const std::string& msg=std::string()) : ConnectionException(530, "not-allowed: "+msg) {}
00136 };
00137 
00138 struct NotImplementedException:
00139     ConnectionException
00140 {
00141     NotImplementedException(const std::string& msg=std::string()) : ConnectionException(540, "not-implemented: "+msg) {}
00142 };
00143 
00144 struct InternalErrorException:
00145     ConnectionException
00146 {
00147     InternalErrorException(const std::string& msg=std::string()) : ConnectionException(541, "internal-error: "+msg) {}
00148 };
00149 
00150 struct InvalidArgumentException:
00151     ConnectionException
00152 {
00153     InvalidArgumentException(const std::string& msg=std::string()) : ConnectionException(542, "invalid-argument: "+msg) {}
00154 };
00155 
00156 struct ChannelBusyException:
00157     ConnectionException
00158 {
00159     ChannelBusyException(const std::string& msg=std::string()) : ConnectionException(543, "channel-busy: "+msg) {}
00160 };
00161 
00162 void throwReplyException(int code, const std::string& text);
00163 
00164 }} // namespace qpid::framing
00165 
00166 #endif  

Generated on Thu Apr 10 11:08:16 2008 for Qpid by  doxygen 1.4.7