Minetest  5.4.0
networkexceptions.h
Go to the documentation of this file.
1 /*
2 Minetest
3 Copyright (C) 2013-2017 celeron55, Perttu Ahola <celeron55@gmail.com>
4 
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.
9 
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.
14 
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.
18 */
19 
20 #pragma once
21 
22 #include "exceptions.h"
23 
24 namespace con
25 {
26 /*
27  Exceptions
28 */
30 {
31 public:
32  NotFoundException(const char *s) : BaseException(s) {}
33 };
34 
36 {
37 public:
38  PeerNotFoundException(const char *s) : BaseException(s) {}
39 };
40 
42 {
43 public:
44  ConnectionException(const char *s) : BaseException(s) {}
45 };
46 
48 {
49 public:
50  ConnectionBindFailed(const char *s) : BaseException(s) {}
51 };
52 
54 {
55 public:
57 };
58 
60 {
61 public:
62  NoIncomingDataException(const char *s) : BaseException(s) {}
63 };
64 
66 {
67 public:
69 };
70 
72 {
73 public:
74  ProcessedQueued(const char *s) : BaseException(s) {}
75 };
76 
78 {
79 public:
80  IncomingDataCorruption(const char *s) : BaseException(s) {}
81 };
82 }
83 
85 {
86 public:
87  SocketException(const std::string &s) : BaseException(s) {}
88 };
89 
91 {
92 public:
93  ResolveError(const std::string &s) : BaseException(s) {}
94 };
95 
97 {
98 public:
99  SendFailedException(const std::string &s) : BaseException(s) {}
100 };
Definition: exceptions.h:27
Definition: networkexceptions.h:91
ResolveError(const std::string &s)
Definition: networkexceptions.h:93
Definition: networkexceptions.h:97
SendFailedException(const std::string &s)
Definition: networkexceptions.h:99
Definition: networkexceptions.h:85
SocketException(const std::string &s)
Definition: networkexceptions.h:87
Definition: networkexceptions.h:48
ConnectionBindFailed(const char *s)
Definition: networkexceptions.h:50
Definition: networkexceptions.h:42
ConnectionException(const char *s)
Definition: networkexceptions.h:44
Definition: networkexceptions.h:78
IncomingDataCorruption(const char *s)
Definition: networkexceptions.h:80
Definition: networkexceptions.h:54
InvalidIncomingDataException(const char *s)
Definition: networkexceptions.h:56
Definition: networkexceptions.h:60
NoIncomingDataException(const char *s)
Definition: networkexceptions.h:62
Definition: networkexceptions.h:30
NotFoundException(const char *s)
Definition: networkexceptions.h:32
Definition: networkexceptions.h:36
PeerNotFoundException(const char *s)
Definition: networkexceptions.h:38
Definition: networkexceptions.h:72
ProcessedQueued(const char *s)
Definition: networkexceptions.h:74
Definition: networkexceptions.h:66
ProcessedSilentlyException(const char *s)
Definition: networkexceptions.h:68
Definition: client.h:64