r3171 - in trunk/libminisip: include include/libminisip source

erik at minisip.org erik at minisip.org
Thu Feb 1 10:41:23 CET 2007


Author: erik
Date: 2007-02-01 10:41:22 +0100 (Thu, 01 Feb 2007)
New Revision: 3171

Added:
   trunk/libminisip/include/libminisip/MinisipExceptions.h
   trunk/libminisip/source/MinisipExceptions.cxx
Modified:
   trunk/libminisip/include/Makefile.am
Log:
 
 * Added MinisipExceptions.{h,cxx}. 



Modified: trunk/libminisip/include/Makefile.am
===================================================================
--- trunk/libminisip/include/Makefile.am	2007-02-01 09:38:59 UTC (rev 3170)
+++ trunk/libminisip/include/Makefile.am	2007-02-01 09:41:22 UTC (rev 3171)
@@ -116,6 +116,7 @@
 			libminisip/ipprovider/StunIpProvider.h \
 			libminisip/ipprovider/IpProvider.h \
 			libminisip/Minisip.h \
+			libminisip/MinisipExceptions.h \
 			libminisip/libminisip_config.h \
 			libminisip/zrtp/ZrtpHostBridgeMinisip.h
 

Added: trunk/libminisip/include/libminisip/MinisipExceptions.h
===================================================================
--- trunk/libminisip/include/libminisip/MinisipExceptions.h	2007-02-01 09:38:59 UTC (rev 3170)
+++ trunk/libminisip/include/libminisip/MinisipExceptions.h	2007-02-01 09:41:22 UTC (rev 3171)
@@ -0,0 +1,44 @@
+/*
+  Copyright (C) 2005, 2004 Erik Eliasson, Johan Bilien
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+/*
+ * Authors: Erik Eliasson <eliasson at it.kth.se>
+ *          Johan Bilien <jobi at via.ecp.fr>
+ */
+
+#ifndef MINISIP_EXCEPTION_H
+#define MINISIP_EXCEPTION_H
+
+#include<libminisip/libminisip_config.h>
+
+#include<string>
+#include<libmutil/Exception.h>
+
+class LIBMINISIP_API MinisipException : public Exception{
+	public:
+		     MinisipException( const std::string& what );
+		virtual ~MinisipException() throw();
+};
+
+class LIBMINISIP_API MinisipBadArgument : public MinisipException{
+	public:
+		MinisipBadArgument( const std::string& reason);
+		virtual ~MinisipBadArgument()throw();
+};
+
+#endif


Property changes on: trunk/libminisip/include/libminisip/MinisipExceptions.h
___________________________________________________________________
Name: svn:eol-style
   + native

Added: trunk/libminisip/source/MinisipExceptions.cxx
===================================================================
--- trunk/libminisip/source/MinisipExceptions.cxx	2007-02-01 09:38:59 UTC (rev 3170)
+++ trunk/libminisip/source/MinisipExceptions.cxx	2007-02-01 09:41:22 UTC (rev 3171)
@@ -0,0 +1,44 @@
+/*
+  Copyright (C) 2007 Erik Eliasson
+
+  This library is free software; you can redistribute it and/or
+  modify it under the terms of the GNU Lesser General Public
+  License as published by the Free Software Foundation; either
+  version 2.1 of the License, or (at your option) any later version.
+
+  This library is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+  Lesser General Public License for more details.
+
+  You should have received a copy of the GNU Lesser General Public
+  License along with this library; if not, write to the Free Software
+  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*/
+
+/*
+ * Authors: Erik Eliasson <eliasson at it.kth.se>
+ */
+
+
+#include<config.h>
+
+#include<libminisip/MinisipExceptions.h>
+
+using namespace std;
+
+MinisipException::MinisipException( const std::string& what ) : Exception(what){
+
+}
+
+MinisipException::~MinisipException() throw() {
+
+}
+
+MinisipBadArgument::MinisipBadArgument( const std::string& reason):MinisipException(reason){
+
+}
+MinisipBadArgument::~MinisipBadArgument()throw() {
+
+}
+



More information about the Minisip-devel mailing list