summaryrefslogtreecommitdiffstats
path: root/src/Net/ConnectionException.h
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2008-09-19 11:15:14 +0200
committerMatthias Schiffer <matthias@gamezock.de>2008-09-19 11:15:14 +0200
commit113b1f4bbdecfab24ed9781b730a76a442adad6f (patch)
treee28f5c9a7a1afebd7d920f1006aacff401894dbc /src/Net/ConnectionException.h
parent793a0789858734141dfa12d2ab3dd6ea3ed293e8 (diff)
downloadmad-113b1f4bbdecfab24ed9781b730a76a442adad6f.tar
mad-113b1f4bbdecfab24ed9781b730a76a442adad6f.zip
Exceptions vereinheitlicht
Diffstat (limited to 'src/Net/ConnectionException.h')
-rw-r--r--src/Net/ConnectionException.h42
1 files changed, 0 insertions, 42 deletions
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 <matthias@gamezock.de>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-#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_*/