Luanti 5.18.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:
31};
32
33}
34
36{
37public:
38 SocketException(const std::string &s) : BaseException(s) {}
39};
40
42{
43public:
44 ResolveError(const std::string &s) : BaseException(s) {}
45};
46
48{
49public:
50 SendFailedException(const std::string &s) : BaseException(s) {}
51};
BaseException(const std::string &s) noexcept
Definition exceptions.h:14
ResolveError(const std::string &s)
Definition networkexceptions.h:44
SendFailedException(const std::string &s)
Definition networkexceptions.h:50
SocketException(const std::string &s)
Definition networkexceptions.h:38
ConnectionException(const char *s)
Definition networkexceptions.h:24
InvalidIncomingDataException(const char *s)
Definition networkexceptions.h:30
PeerNotFoundException(const char *s)
Definition networkexceptions.h:18
Definition client.h:64