3 Copyright (C) 2013-2017 celeron55, Perttu Ahola <celeron55@gmail.com>
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU Lesser General Public License as published by
7 the Free Software Foundation; either version 2.1 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public License along
16 with this program; if not, write to the Free Software Foundation, Inc.,
17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #include "exceptions.h"
29 class NotFoundException : public BaseException
32 NotFoundException(const char *s) : BaseException(s) {}
35 class PeerNotFoundException : public BaseException
38 PeerNotFoundException(const char *s) : BaseException(s) {}
41 class ConnectionException : public BaseException
44 ConnectionException(const char *s) : BaseException(s) {}
47 class ConnectionBindFailed : public BaseException
50 ConnectionBindFailed(const char *s) : BaseException(s) {}
53 class InvalidIncomingDataException : public BaseException
56 InvalidIncomingDataException(const char *s) : BaseException(s) {}
59 class InvalidOutgoingDataException : public BaseException
62 InvalidOutgoingDataException(const char *s) : BaseException(s) {}
65 class NoIncomingDataException : public BaseException
68 NoIncomingDataException(const char *s) : BaseException(s) {}
71 class ProcessedSilentlyException : public BaseException
74 ProcessedSilentlyException(const char *s) : BaseException(s) {}
77 class ProcessedQueued : public BaseException
80 ProcessedQueued(const char *s) : BaseException(s) {}
83 class IncomingDataCorruption : public BaseException
86 IncomingDataCorruption(const char *s) : BaseException(s) {}
90 class SocketException : public BaseException
93 SocketException(const std::string &s) : BaseException(s) {}
96 class ResolveError : public BaseException
99 ResolveError(const std::string &s) : BaseException(s) {}
102 class SendFailedException : public BaseException
105 SendFailedException(const std::string &s) : BaseException(s) {}