1//
2// NetException.cpp
3//
4// Library: Net
5// Package: NetCore
6// Module: NetException
7//
8// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
9// and Contributors.
10//
11// SPDX-License-Identifier: BSL-1.0
12//
13
14
15#include "Poco/Net/NetException.h"
16#include <typeinfo>
17
18
19using Poco::IOException;
20
21
22namespace Poco {
23namespace Net {
24
25
26POCO_IMPLEMENT_EXCEPTION(NetException, IOException, "Net Exception")
27POCO_IMPLEMENT_EXCEPTION(InvalidAddressException, NetException, "Invalid address")
28POCO_IMPLEMENT_EXCEPTION(InvalidSocketException, NetException, "Invalid socket")
29POCO_IMPLEMENT_EXCEPTION(ServiceNotFoundException, NetException, "Service not found")
30POCO_IMPLEMENT_EXCEPTION(ConnectionAbortedException, NetException, "Software caused connection abort")
31POCO_IMPLEMENT_EXCEPTION(ConnectionResetException, NetException, "Connection reset by peer")
32POCO_IMPLEMENT_EXCEPTION(ConnectionRefusedException, NetException, "Connection refused")
33POCO_IMPLEMENT_EXCEPTION(DNSException, NetException, "DNS error")
34POCO_IMPLEMENT_EXCEPTION(HostNotFoundException, DNSException, "Host not found")
35POCO_IMPLEMENT_EXCEPTION(NoAddressFoundException, DNSException, "No address found")
36POCO_IMPLEMENT_EXCEPTION(InterfaceNotFoundException, NetException, "Interface not found")
37POCO_IMPLEMENT_EXCEPTION(NoMessageException, NetException, "No message received")
38POCO_IMPLEMENT_EXCEPTION(MessageException, NetException, "Malformed message")
39POCO_IMPLEMENT_EXCEPTION(MultipartException, MessageException, "Malformed multipart message")
40POCO_IMPLEMENT_EXCEPTION(HTTPException, NetException, "HTTP Exception")
41POCO_IMPLEMENT_EXCEPTION(NotAuthenticatedException, HTTPException, "No authentication information found")
42POCO_IMPLEMENT_EXCEPTION(UnsupportedRedirectException, HTTPException, "Unsupported HTTP redirect (protocol change)")
43POCO_IMPLEMENT_EXCEPTION(FTPException, NetException, "FTP Exception")
44POCO_IMPLEMENT_EXCEPTION(SMTPException, NetException, "SMTP Exception")
45POCO_IMPLEMENT_EXCEPTION(POP3Exception, NetException, "POP3 Exception")
46POCO_IMPLEMENT_EXCEPTION(ICMPException, NetException, "ICMP Exception")
47POCO_IMPLEMENT_EXCEPTION(ICMPFragmentationException, NetException, "ICMP Fragmentation needed")
48POCO_IMPLEMENT_EXCEPTION(NTPException, NetException, "NTP Exception")
49POCO_IMPLEMENT_EXCEPTION(HTMLFormException, NetException, "HTML Form Exception")
50POCO_IMPLEMENT_EXCEPTION(WebSocketException, NetException, "WebSocket Exception")
51POCO_IMPLEMENT_EXCEPTION(UnsupportedFamilyException, NetException, "Unknown or unsupported socket family")
52POCO_IMPLEMENT_EXCEPTION(AddressFamilyMismatchException, NetException, "Address family mismatch")
53
54
55} } // namespace Poco::Net
56