exception.hpp

Go to the documentation of this file.
00001 /*
00002  * ====================================================================
00003  * Copyright (c) 2002-2006 The RapidSvn Group.  All rights reserved.
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  * 
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  * 
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library (in the file LGPL.txt); if not, 
00017  * write to the Free Software Foundation, Inc., 51 Franklin St, 
00018  * Fifth Floor, Boston, MA  02110-1301  USA
00019  *
00020  * This software consists of voluntary contributions made by many
00021  * individuals.  For exact contribution history, see the revision
00022  * history and logs, available at http://rapidsvn.tigris.org/.
00023  * ====================================================================
00024  */
00025 
00026 #ifndef _SVNCPP_EXCEPTION_H_
00027 #define _SVNCPP_EXCEPTION_H_
00028 
00029 // subversion api
00030 #include "svn_client.h"
00031 
00032 
00033 namespace svn
00034 {
00035 
00039   class Exception
00040   {
00041   public:
00045     Exception (const char * message) throw ();
00046 
00047     ~Exception () throw ();
00048 
00052     const char * message () const;
00053 
00057     const apr_status_t apr_err () const;
00058 
00059   protected:
00060     struct Data;
00061     Data * m;
00062 
00063   private:
00064 
00065     Exception (const Exception &) throw ();
00066 
00067     Exception () throw ();
00068     
00069     Exception & operator = (const Exception &);
00070   };
00071 
00075   class ClientException : public Exception
00076   {
00077   public:
00081     ClientException (svn_error_t * error) throw ();
00082 
00083 
00087     ClientException (apr_status_t status) throw ();
00088 
00089     ClientException (const char * message) throw ()
00090       : Exception (message)
00091     {
00092     }
00093     
00094 
00098     ClientException (const ClientException & src) throw ();
00099 
00100     virtual ~ClientException () throw ();
00101 
00102   private:
00103     ClientException () throw ();
00104 
00105     ClientException & operator = (ClientException &);
00106   };
00107 
00108 }
00109 
00110 #endif
00111 /* -----------------------------------------------------------------
00112  * local variables:
00113  * eval: (load-file "../../rapidsvn-dev.el")
00114  * end:
00115  */

Generated on Fri Dec 8 18:57:44 2006 for SvnCpp by  doxygen 1.4.7