SocketOperationFailedException.hpp 694 B

123456789101112131415161718192021222324252627282930
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2022-12-27
  6. * Changed: 2022-12-27
  7. *
  8. * */
  9. #ifndef LS_STD_SOCKET_OPERATION_FAILED_EXCEPTION_HPP
  10. #define LS_STD_SOCKET_OPERATION_FAILED_EXCEPTION_HPP
  11. #include <exception>
  12. namespace ls::std::core
  13. {
  14. class SocketOperationFailedException : public ::std::exception
  15. {
  16. public:
  17. explicit SocketOperationFailedException() = default;
  18. [[nodiscard]] const char *what() const noexcept override
  19. {
  20. return "SocketOperationFailedException thrown - operation on socket was not successful!";
  21. }
  22. };
  23. }
  24. #endif