NetException.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. //
  2. // NetException.h
  3. //
  4. // Library: Net
  5. // Package: NetCore
  6. // Module: NetException
  7. //
  8. // Definition of the NetException class.
  9. //
  10. // Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
  11. // and Contributors.
  12. //
  13. // SPDX-License-Identifier: BSL-1.0
  14. //
  15. #ifndef Net_NetException_INCLUDED
  16. #define Net_NetException_INCLUDED
  17. #include "Poco/Net/Net.h"
  18. #include "Poco/Exception.h"
  19. namespace Poco {
  20. namespace Net {
  21. POCO_DECLARE_EXCEPTION(Net_API, NetException, Poco::IOException)
  22. POCO_DECLARE_EXCEPTION(Net_API, InvalidAddressException, NetException)
  23. POCO_DECLARE_EXCEPTION(Net_API, InvalidSocketException, NetException)
  24. POCO_DECLARE_EXCEPTION(Net_API, ServiceNotFoundException, NetException)
  25. POCO_DECLARE_EXCEPTION(Net_API, ConnectionAbortedException, NetException)
  26. POCO_DECLARE_EXCEPTION(Net_API, ConnectionResetException, NetException)
  27. POCO_DECLARE_EXCEPTION(Net_API, ConnectionRefusedException, NetException)
  28. POCO_DECLARE_EXCEPTION(Net_API, DNSException, NetException)
  29. POCO_DECLARE_EXCEPTION(Net_API, HostNotFoundException, DNSException)
  30. POCO_DECLARE_EXCEPTION(Net_API, NoAddressFoundException, DNSException)
  31. POCO_DECLARE_EXCEPTION(Net_API, InterfaceNotFoundException, NetException)
  32. POCO_DECLARE_EXCEPTION(Net_API, NoMessageException, NetException)
  33. POCO_DECLARE_EXCEPTION(Net_API, MessageException, NetException)
  34. POCO_DECLARE_EXCEPTION(Net_API, MultipartException, MessageException)
  35. POCO_DECLARE_EXCEPTION(Net_API, HTTPException, NetException)
  36. POCO_DECLARE_EXCEPTION(Net_API, NotAuthenticatedException, HTTPException)
  37. POCO_DECLARE_EXCEPTION(Net_API, UnsupportedRedirectException, HTTPException)
  38. POCO_DECLARE_EXCEPTION(Net_API, FTPException, NetException)
  39. POCO_DECLARE_EXCEPTION(Net_API, SMTPException, NetException)
  40. POCO_DECLARE_EXCEPTION(Net_API, POP3Exception, NetException)
  41. POCO_DECLARE_EXCEPTION(Net_API, ICMPException, NetException)
  42. POCO_DECLARE_EXCEPTION(Net_API, NTPException, NetException)
  43. POCO_DECLARE_EXCEPTION(Net_API, HTMLFormException, NetException)
  44. POCO_DECLARE_EXCEPTION(Net_API, WebSocketException, NetException)
  45. POCO_DECLARE_EXCEPTION(Net_API, UnsupportedFamilyException, NetException)
  46. POCO_DECLARE_EXCEPTION(Net_API, AddressFamilyMismatchException, NetException)
  47. } } // namespace Poco::Net
  48. #endif // Net_NetException_INCLUDED