Luanti 5.10.0-dev
 
Loading...
Searching...
No Matches
networkexceptions.h
Go to the documentation of this file.
1// Luanti
2// SPDX-License-Identifier: LGPL-2.1-or-later
3// Copyright (C) 2013-2017 celeron55, Perttu Ahola <celeron55@gmail.com>
4
5#pragma once
6
7#include "exceptions.h"
8
9namespace con
10{
11/*
12 Exceptions
13*/
14
16{
17public:
18 PeerNotFoundException(const char *s) : BaseException(s) {}
19};
20
22{
23public:
24 ConnectionException(const char *s) : BaseException(s) {}
25};
26
28{
29public:
30 ConnectionBindFailed(const char *s) : BaseException(s) {}
31};
32
34{
35public:
37};
38
39}
40
42{
43public:
44 SocketException(const std::string &s) : BaseException(s) {}
45};
46
48{
49public:
50 ResolveError(const std::string &s) : BaseException(s) {}
51};
52
54{
55public:
56 SendFailedException(const std::string &s) : BaseException(s) {}
57};
Definition exceptions.h:12
Definition networkexceptions.h:48
ResolveError(const std::string &s)
Definition networkexceptions.h:50
Definition networkexceptions.h:54
SendFailedException(const std::string &s)
Definition networkexceptions.h:56
Definition networkexceptions.h:42
SocketException(const std::string &s)
Definition networkexceptions.h:44
Definition networkexceptions.h:28
ConnectionBindFailed(const char *s)
Definition networkexceptions.h:30
Definition networkexceptions.h:22
ConnectionException(const char *s)
Definition networkexceptions.h:24
Definition networkexceptions.h:34
InvalidIncomingDataException(const char *s)
Definition networkexceptions.h:36
Definition networkexceptions.h:16
PeerNotFoundException(const char *s)
Definition networkexceptions.h:18
Definition client.h:59