From 113b1f4bbdecfab24ed9781b730a76a442adad6f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Fri, 19 Sep 2008 11:15:14 +0200 Subject: Exceptions vereinheitlicht --- src/Net/ConnectionException.h | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 src/Net/ConnectionException.h (limited to 'src/Net/ConnectionException.h') diff --git a/src/Net/ConnectionException.h b/src/Net/ConnectionException.h deleted file mode 100644 index cb9e10e..0000000 --- a/src/Net/ConnectionException.h +++ /dev/null @@ -1,42 +0,0 @@ -/* - * ConnectionException.h - * - * Copyright (C) 2008 Matthias Schiffer - * - * This program is free software: you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see . - */ - -#ifndef MAD_NET_CONNECTIONEXCEPTION_H_ -#define MAD_NET_CONNECTIONEXCEPTION_H_ - -#include "Exception.h" - -namespace Mad { -namespace Net { - -class ConnectionException : public Exception { - private: - std::string str; - - public: - ConnectionException(const std::string &during, const std::string &error) - : str(during + ": " + error) {} - - virtual std::string& what() {return str;} -}; - -} -} - -#endif /*MAD_NET_CONNECTIONEXCEPTION_H_*/ -- cgit v1.2.3